mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
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>
This commit is contained in:
parent
dfc2b00152
commit
96d4b0d563
@ -125,7 +125,7 @@ static int echo_create(const struct lu_env *env, struct obd_export *exp,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(oa->o_mode && S_IFMT)) {
|
if (!(oa->o_mode & S_IFMT)) {
|
||||||
CERROR("echo obd: no type!\n");
|
CERROR("echo obd: no type!\n");
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user