]> git.baikalelectronics.ru Git - kernel.git/commit
bcm63xx_enet: fix return value check in bcm_enet_shared_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 19 Jun 2013 02:32:32 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2013 07:48:58 +0000 (00:48 -0700)
commit44a0531f85fe4e2a04060fa4e433b7b78c78d3ef
tree1961c2a83d9bd491f2ce6d236c258fd9cf292661
parentfbd3b5fb4cbf6928371b3d05cec1a5b14c14d179
bcm63xx_enet: fix return value check in bcm_enet_shared_probe()

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().

Introduce by commit 6862c0fab854575bd8781376837b6160120079d0
(bcm63xx_enet: split DMA channel register accesses)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm63xx_enet.c