diff options
author | Vincent Stehlé <vincent.stehle@freescale.com> | 2015-09-21 17:18:34 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-08 14:50:57 +0100 |
commit | 22224a17587c90e25371e7d07c079548359b2039 (patch) | |
tree | b9dc29b68a83375d3063a8713a879f3c682b024f /fs/super.c | |
parent | d83e2a4ea2296620e8f6cb724e60190826c43a3f (diff) | |
download | op-kernel-dev-22224a17587c90e25371e7d07c079548359b2039.zip op-kernel-dev-22224a17587c90e25371e7d07c079548359b2039.tar.gz |
fs/super.c: use && instead of & for warn_on condition
This fixes the following sparse warning:
fs/super.c:1202:9: warning: dubious: x & !y
Bitwise and logical and are equivalent here, but logical was intended.
The generated code is identical, with and without CONFIG_LOCKDEP.
Signed-off-by: Vincent Stehlé <vincent.stehle@freescale.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1199,7 +1199,7 @@ int __sb_start_write(struct super_block *sb, int level, bool wait) else ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1); - WARN_ON(force_trylock & !ret); + WARN_ON(force_trylock && !ret); return ret; } EXPORT_SYMBOL(__sb_start_write); |