]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: bcm_umi_nand: clean up error handling code
authorJulia Lawall <julia@diku.dk>
Wed, 10 Aug 2011 08:14:14 +0000 (10:14 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>
Sat, 20 Aug 2011 04:52:24 +0000 (07:52 +0300)
commit93596a62c8476e43342799e2830e1b7741ad80fd
treea5d735a1142b08145c71ed70322f3283848ba634
parentf54dd6aff1014250bda6465bd28d87cbb921be3e
mtd: bcm_umi_nand: clean up error handling code

Convert error handling code to use gotos.  At the same time, this adds
calls to kfree and iounmap in a few cases where they were overlooked.

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
drivers/mtd/nand/bcm_umi_nand.c