diff options
author | Jiapeng Chong <[email protected]> | 2023-05-31 13:35:59 +0800 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-06-08 18:12:46 +0100 |
commit | b3f4b679ff427bba8208177ea52cc39128995f62 (patch) | |
tree | 1cca474d71f6a58e80f0610e39ca38e1abcf0d3a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | dda968475beb1939be84c7f34636cbc7bdc0eb14 (diff) |
leds: flash: leds-qcom-flash: Fix an unsigned comparison which can never be negative
The variable 'count' is defined as unsigned type, so the following if
statement is invalid, we can modify the type of count to int.
if (count <= 0) {
dev_err(dev, "No led-sources specified\n");
return -ENODEV;
}
./drivers/leds/flash/leds-qcom-flash.c:546:5-10: WARNING: Unsigned expression compared with zero: count <= 0.
Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5344
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions