]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: Fix return value check in bgmac_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 00:17:28 +0000 (00:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2016 02:48:10 +0000 (19:48 -0700)
commit48d199d011186d205c858c3ba75b2586ee5cb2da
tree0dac404657ca43d661cd913925a9e9ecf522ce0e
parenta66d23b6e76f0aae6f5ae53225f2979a6cd36a6f
net: ethernet: bgmac: Fix return value check in bgmac_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().

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