From: Wei Yongjun Date: Thu, 11 Sep 2014 23:12:57 +0000 (+0800) Subject: net: stmmac: fix return value check in socfpga_dwmac_parse_data() X-Git-Tag: omap-for-v3.19/prcm-cleanup~78^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f19f916d64e7a0af743bbfc7d1594db08c712f9f;p=pandora-kernel.git net: stmmac: fix return value check in socfpga_dwmac_parse_data() In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- Reading git-diff-tree failed