Browse Source

staging: lustre: bitwise vs logical typo

Bitwise AND was intended here obviously.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Dan Carpenter 11 years ago
parent
commit
96d4b0d563
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/lustre/lustre/obdecho/echo.c

+ 1 - 1
drivers/staging/lustre/lustre/obdecho/echo.c

@@ -125,7 +125,7 @@ static int echo_create(const struct lu_env *env, struct obd_export *exp,
 		return -EINVAL;
 	}
 
-	if (!(oa->o_mode && S_IFMT)) {
+	if (!(oa->o_mode & S_IFMT)) {
 		CERROR("echo obd: no type!\n");
 		return -ENOENT;
 	}