staging: lustre: bitwise vs logical typo
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 31 Jul 2014 15:21:34 +0000 (18:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 22:00:18 +0000 (15:00 -0700)
Bitwise AND was intended here obviously.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdecho/echo.c

index f3b7429..dae1599 100644 (file)
@@ -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;
        }