nand: mrvl: use ERR_CAST() for returning error pointers
ERR_CAST exists to return error pointers as error pointers without
casting them explicitly to the correct pointer type.

Also this Fixes:
In function 'alloc_nand_resource':
warning: return makes pointer from integer without a cast

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c77af5e commit 370e90bac98c4e1073578c16f46d5a123b8df052
@Sascha Hauer Sascha Hauer authored on 22 Jul 2016
Showing 1 changed file
View
drivers/mtd/nand/nand_mrvl_nfc.c