]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mv643xx_eth: fix return check in mv64x60_eth_register_shared_pdev()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 25 Oct 2013 09:30:24 +0000 (17:30 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 29 Oct 2013 02:11:23 +0000 (21:11 -0500)
commit205c9b376766d59cb7d47434bf73db6470e78a64
treefdede613ba05e0360f3c5b42c92db7a878fb7f7f
parentf67e24416a444cb7209b1c99600efb3f2c595806
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/mv64x60_dev.c