diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-19 00:09:12 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-31 09:45:51 +0200 |
commit | 760c435e0f85ed19e48a90d746ce1de2cd02def7 (patch) | |
tree | db479cbf16f6e056c1427b6cbfa54f50c5c8d06b /samples/bpf/tracex1_user.c | |
parent | d166541e9031daff120cac212f1917eff93c07d3 (diff) |
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 'samples/bpf/tracex1_user.c')
0 files changed, 0 insertions, 0 deletions