Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
96d4b0d5 dfc2b001

+1 -1
+1 -1
drivers/staging/lustre/lustre/obdecho/echo.c
··· 125 125 return -EINVAL; 126 126 } 127 127 128 - if (!(oa->o_mode && S_IFMT)) { 128 + if (!(oa->o_mode & S_IFMT)) { 129 129 CERROR("echo obd: no type!\n"); 130 130 return -ENOENT; 131 131 }