mtd: plat_nand: remove redundant return value check of platform_get_resource()
commit840f53c31224d687a7c4a24ea118fa3c737407b0
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 Jan 2014 13:38:12 +0000 (7 21:38 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 20 Jan 2014 19:37:29 +0000 (20 11:37 -0800)
treeae5bc1f685c50926b397318f7c3e301dd8fbb67b
parent4968a4124cf2df4b3672eed4714c6755f10f400c
mtd: plat_nand: remove redundant return value check of platform_get_resource()

Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource(). And move those two call together
to make the connection between them more clear.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/plat_nand.c