mtd: nand: lpc32xx_slc: Remove unneeded NULL check on 'rc'
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 29 Nov 2016 15:28:52 +0000 (13:28 -0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 30 Jan 2017 10:50:30 +0000 (11:50 +0100)
commit4339b7fdbb90ab579862b0fcde6ee0f342f12692
tree1d49550af8f34b77c17030c867fb5f87633a9038
parent61babe943938bb41fcd7e2b1dec7d1537ea3892f
mtd: nand: lpc32xx_slc: Remove unneeded NULL check on 'rc'

devm_ioremap_resource() does a NULL check on the 'rc' argument, so
remove the unneeded manual NULL check.

While at it, place the 'rc' assignment just before
devm_ioremap_resource() to improve readability.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/lpc32xx_slc.c