]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: ams-delta: cleanup ams_delta_init() error path
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 11 Nov 2018 07:55:11 +0000 (08:55 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 7 Dec 2018 09:38:24 +0000 (10:38 +0100)
commit82bd2136a6283abeefe6dcb6f3e24a0e9f23a393
treed12e07b584da859043d15b24d382467469cd0468
parent8496f8677b9e806d14f4a8c42ea21c7c97b98906
mtd: rawnand: ams-delta: cleanup ams_delta_init() error path

Remove unused labels, rename out_mtd into err_unmap to make it clearer
and return 0 instead of using a goto out at the end of the registration
procedure.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ams-delta.c