diff options
author | Joe Perches <joe@perches.com> | 2015-02-13 22:38:38 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-14 05:21:39 (GMT) |
commit | acd9362c248e33187629c950badb834b73e20e41 (patch) | |
tree | 906c5686169c07b1849fe49426b72a57c01f26c9 /init/version.c | |
parent | 0d7835fcaa67bb21e5ffd50afaa65c81c53f8856 (diff) | |
download | linux-acd9362c248e33187629c950badb834b73e20e41.tar.xz |
checkpatch: add likely/unlikely comparison misuse test
Add a test for probably likely/unlikely misuses where the comparison is
likely misplaced
if (likely(foo) > 0)
vs
if (likely(foo > 0))
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Christoph Jaeger <cj@linux.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions