diff options
author | Sergey Shtylyov <[email protected]> | 2023-01-17 23:59:55 +0300 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2023-02-02 14:26:09 -0500 |
commit | 151d812251202aa0dce1fdeabd64794292d40b75 (patch) | |
tree | 87056e0174a2364649968000948aeb3265e24664 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | aa56b9b75996ff4c76a0a4181c2fa0206c3d91cc (diff) |
dm ioctl: drop always-false condition
The expression 'indata[3] > ULONG_MAX' always evaluates to false since
indata[] is declared as an array of *unsigned long* elements and #define
ULONG_MAX represents the max value of that exact type...
Note that gcc seems to be able to detect the dead code here and eliminate
this check anyway...
Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.
Signed-off-by: Sergey Shtylyov <[email protected]>
Reviewed-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions