diff options
author | 2019-12-30 11:29:45 +0800 | |
---|---|---|
committer | 2020-01-21 20:00:34 +0100 | |
commit | f33113b542219448fa02d77ca1c6f4265bd7f130 (patch) | |
tree | f91752cec049cae48bf7226ebbdd7e460dded248 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: onenand: Enable compile testing of OMAP and Samsung drivers (diff) | |
download | linux-dev-f33113b542219448fa02d77ca1c6f4265bd7f130.tar.xz linux-dev-f33113b542219448fa02d77ca1c6f4265bd7f130.zip |
mtd: sharpslpart: Fix unsigned comparison to zero
The unsigned variable log_num is being assigned a return value
from the call to sharpsl_nand_get_logical_num that can return
-EINVAL.
Detected using Coccinelle:
./drivers/mtd/parsers/sharpslpart.c:207:6-13: WARNING: Unsigned expression compared with zero: log_num > 0
Fixes: 8a4580e4d298 ("mtd: sharpslpart: Add sharpslpart partition parser")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions