From: Wei Yongjun Date: Wed, 19 Jun 2013 02:32:32 +0000 (+0800) Subject: bcm63xx_enet: fix return value check in bcm_enet_shared_probe() X-Git-Tag: v3.11-rc1~16^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646093a29f85630d8efe2aa38fa585d2c3ea2e46;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed