commit | 12c2e32f14da857b58af281b029d4549d24c3292 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Tue Jul 12 00:17:28 2016 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 11 19:48:10 2016 -0700 |
tree | 0dac404657ca43d661cd913925a9e9ecf522ce0e | |
parent | cf81b2ccad03a9477cf3fd135341642420d18620 [diff] |
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>