]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/notifier.c: simplify expression
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 24 Feb 2017 23:00:44 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:56 +0000 (17:46 -0800)
commit71987fd231796f27589b9f2f1abc8b20cbb44007
treefc122c167767f41c2a487a19b129f0f656d78dfc
parent402dd989c74bb0e9ee0608666a5adc249fa7cd28
kernel/notifier.c: simplify expression

NOTIFY_STOP_MASK (0x8000) has only one bit set and there is no need to
compare output of "ret & NOTIFY_STOP_MASK" to NOTIFY_STOP_MASK.  We just
need to make sure the output is non-zero, that's it.

Link: http://lkml.kernel.org/r/88ee58264a2bfab1c97ffc8ac753e25f55f57c10.1483593065.git.viresh.kumar@linaro.org
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/notifier.c