From: Julia Lawall Date: Mon, 19 Aug 2013 08:51:56 +0000 (+0200) Subject: MIPS: ath79: simplify platform_get_resource_byname/devm_ioremap_resource X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~57^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6e7274e7a04af90b6dd7b507e1ea15dbe37b2e0;p=pandora-kernel.git MIPS: ath79: simplify platform_get_resource_byname/devm_ioremap_resource Remove unneeded error handling on the result of a call to platform_get_resource_byname when the value is passed to devm_ioremap_resource. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression pdev,res,e,e1; expression ret != 0; identifier l; @@ res = platform_get_resource_byname(...); - if (res == NULL) { ... \(goto l;\|return ret;\) } e = devm_ioremap_resource(e1, res); // Signed-off-by: Julia Lawall Acked-by: Gabor Juhos Cc: kernel-janitors@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/5725/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed