]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 f3b7429add029f338a09a21c6b8c84347b561352..dae1599af384d7b3d917ef542f645cafee31168f 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;
        }