commit | 646093a29f85630d8efe2aa38fa585d2c3ea2e46 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Wed Jun 19 10:32:32 2013 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 19 00:48:58 2013 -0700 |
tree | 1961c2a83d9bd491f2ce6d236c258fd9cf292661 | |
parent | a267a6041fdb690de9570dab20a5f0fa417c8c9f [diff] |
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 0ae99b5fede6f3a8d252d50bb4aba29544295219 (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>