commit | 4339b7fdbb90ab579862b0fcde6ee0f342f12692 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Tue Nov 29 13:28:52 2016 -0200 |
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | Mon Jan 30 11:50:30 2017 +0100 |
tree | 1d49550af8f34b77c17030c867fb5f87633a9038 | |
parent | 61babe943938bb41fcd7e2b1dec7d1537ea3892f [diff] |
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>