From: Dan Carpenter Date: Thu, 31 Jul 2014 15:21:34 +0000 (+0300) Subject: staging: lustre: bitwise vs logical typo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96d4b0d5636b1810042eabedf766f35b548f1672;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: lustre: bitwise vs logical typo Bitwise AND was intended here obviously. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/obdecho/echo.c b/drivers/staging/lustre/lustre/obdecho/echo.c index f3b7429add02..dae1599af384 100644 --- a/drivers/staging/lustre/lustre/obdecho/echo.c +++ b/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; }