]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: sunxi: clean sunxi_nand_chip_init()
authorRichard Genoud <richard.genoud@bootlin.com>
Fri, 27 Mar 2026 14:05:06 +0000 (15:05 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 1 May 2026 12:49:37 +0000 (14:49 +0200)
commita776cb833d878dc0e8ea64a0ca28fbcdf166e1f5
treee143d4c48fb540bbaa9ec3d6525d713cd3fc0fed
parent6b33232e32828c47ffb9fa024220a7899533f550
mtd: rawnand: sunxi: clean sunxi_nand_chip_init()

In sunxi_nand_chip_init there's quite a lot of kfree/return, it's easy
to forget a kfree(), so use a goto/kfree instead.

Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
[Andre: rename goto label, keep return 0;]
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/mtd/nand/raw/sunxi_nand.c