diff options
| author | Richard Leitner <[email protected]> | 2016-05-20 16:58:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-05-20 17:58:30 -0700 |
| commit | cd33a76b0f2805fb0d6a05a2d53933f3817ccc9b (patch) | |
| tree | ec001711de1e1490cf2bfd289cfe627f9fd4ca0b /tools/perf/scripts/python | |
| parent | 9a001fc19cccdeb9be4c3b89ad089d92df303c44 (diff) | |
mm/memblock.c: remove unnecessary always-true comparison
Comparing an u64 variable to >= 0 returns always true and can therefore
be removed. This issue was detected using the -Wtype-limits gcc flag.
This patch fixes following type-limits warning:
mm/memblock.c: In function `__next_reserved_mem_region':
mm/memblock.c:843:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
if (*idx >= 0 && *idx < type->cnt) {
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Richard Leitner <[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