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>
Sun, 11 Sep 2011 12:02:17 +0000 (15:02 +0300)
commit38ca6ebc72d59c0c4f52d443c69fc4a17765666a
tree97758a3df7ce49ea585e310bb1c8b51f3b411e49
parentf975c6bcb07caacff7fa9904e5d2daa51bcf549d
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