]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: remove never changed ret variable
authorJason Wang <wangborong@cdjrlc.com>
Tue, 3 Aug 2021 11:33:00 +0000 (19:33 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Aug 2021 20:01:56 +0000 (22:01 +0200)
commite676b651111a4efbd42374c1cb0bed61f0eb91c5
tree3183fd715a0e4b0a7413c54f14adf8e8f51c110f
parentf7341647cac97018169421d43ae509cc66125372
mtd: rawnand: remove never changed ret variable

The ret variable used for returning value in the function
`meson_nfc_rw_cmd_prepare_and_execute` is never change after initialising.
Therefore, we can remove it safely and return 0 at the end of the function.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210803113300.24230-1-wangborong@cdjrlc.com
drivers/mtd/nand/raw/meson_nand.c