diff options
| author | Joe Perches <[email protected]> | 2015-02-13 14:38:38 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-13 21:21:39 -0800 |
| commit | acd9362c248e33187629c950badb834b73e20e41 (patch) | |
| tree | 906c5686169c07b1849fe49426b72a57c01f26c9 /tools/perf/scripts/python | |
| parent | 0d7835fcaa67bb21e5ffd50afaa65c81c53f8856 (diff) | |
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 <[email protected]>
Cc: Christoph Jaeger <[email protected]>
Cc: Julia Lawall <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions