diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-09-07 16:29:54 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-10 15:12:50 +0200 |
commit | 21a268069203cc72d1b2990bc68386516fabc274 (patch) | |
tree | 9384f2ccca916afa5cda84e85892a1aadb99893f /mm/list_lru.c | |
parent | Linux 4.19-rc3 (diff) | |
download | linux-21a268069203cc72d1b2990bc68386516fabc274.tar.xz linux-21a268069203cc72d1b2990bc68386516fabc274.zip |
mtd: rawnand: marvell: prevent harmless warnings
Since the addition of WARN_ON() in nand_subop_get_data/addr_len()
helpers, this driver will produce harmless warnings (mostly at probe)
just because it always calls the nand_subop_get_data_len() helper in
the parsing function (even on non-data instructions, where this value
is meaningless and unneeded).
Fix these warnings by deriving the length only when it is relevant.
Fixes: 760c435e0f85 ("mtd: rawnand: make subop helpers return unsigned values")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions