OSDN Git Service

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)
commit8bbc3c0850d0668ac7cf0f5b129ffae8c810247f
treed12e07b584da859043d15b24d382467469cd0468
parentd54445d664a1324785f40f6fd4240b7a024f4b19
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