From: Himangi Saraogi Date: Thu, 10 Jul 2014 06:25:00 +0000 (+0530) Subject: phy: omap-usb2: fix devm_ioremap_resource error detection code X-Git-Tag: omap-for-v3.17/fixes-against-rc2~301^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df9fcd59fd829da046ca63518ad8e51482a39e0;p=pandora-kernel.git phy: omap-usb2: fix devm_ioremap_resource error detection code devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. A simplified version of the semantic match that finds this problem is as follows: // @@ expression e,e1; statement S; @@ *e = devm_ioremap_resource(...); if (!e1) S // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed