diff options
author | 2018-07-19 00:09:12 +0200 | |
---|---|---|
committer | 2018-07-31 09:45:51 +0200 | |
commit | 760c435e0f85ed19e48a90d746ce1de2cd02def7 (patch) | |
tree | db479cbf16f6e056c1427b6cbfa54f50c5c8d06b /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | mtd: rawnand: orion: Handle cases where __LINUX_ARM_ARCH__ is not defined (diff) | |
download | linux-dev-760c435e0f85ed19e48a90d746ce1de2cd02def7.tar.xz linux-dev-760c435e0f85ed19e48a90d746ce1de2cd02def7.zip |
mtd: rawnand: make subop helpers return unsigned values
A report from Colin Ian King pointed a CoverityScan issue where error
values on these helpers where not checked in the drivers. These
helpers can error out only in case of a software bug in driver code,
not because of a runtime/hardware error. Hence, let's WARN_ON() in this
case and return 0 which is harmless anyway.
Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions