diff options
| author | Gustavo Pimentel <[email protected]> | 2020-10-21 23:28:10 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-11-03 10:11:44 +0100 |
| commit | 33fcc5491897504856783335102142676dbee817 (patch) | |
| tree | 5a5939a8d07e66b42efeed2b5e8bf5fd343c7894 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | f0f753da73b386deb274486255b857d013fa6069 (diff) | |
misc: pci_endpoint_test: Remove unnecessary verification
The first condition of the if statement can never be true, because
bar variable is an enum variable type defined between 0 and 5, and
also bar variable acquires the value from arg function parameter which
is an unsigned long variable.
The constant 5 was replaced the the equivalent enum type, in this case
BAR_5.
Signed-off-by: Gustavo Pimentel <[email protected]>
Link: https://lore.kernel.org/r/142cbbc215bed4243a219ea17b46f4256ceccb22.1603315690.git.gustavo.pimentel@synopsys.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions