From: Wei Yongjun Date: Fri, 25 Oct 2013 09:30:24 +0000 (+0800) Subject: powerpc/mv643xx_eth: fix return check in mv64x60_eth_register_shared_pdev() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~19^2~44^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde8e3ee6b37fa33690604302bebfe7b576c3802;p=pandora-kernel.git powerpc/mv643xx_eth: fix return check in mv64x60_eth_register_shared_pdev() In case of error, the function platform_device_register_simple() returns RR_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: Scott Wood --- Reading git-diff-tree failed