summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-31 19:21:34 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-02 02:00:18 +0400
commit96d4b0d5636b1810042eabedf766f35b548f1672 (patch)
treea0b137d15b8fe6675924f36759232fa368d61cd0 /drivers/staging
parentdfc2b00152e99e3adc36d7066811cd936b7cd60d (diff)
downloadlinux-96d4b0d5636b1810042eabedf766f35b548f1672.tar.xz
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lustre/obdecho/echo.c2
1 files changed, 1 insertions, 1 deletions
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;
}