commit | b8b2de91e9dbb89bf4c34a860b04e53a1b1416bf | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Sat Sep 15 01:33:50 2018 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Sep 17 08:06:41 2018 -0700 |
tree | 1d243cd1f8bdfda9887afd58adbca6e1584cc5e1 | |
parent | f592e0b9895cd6f04ba2771a3903317dd7c1ba31 [diff] |
net: lantiq: Fix return value check in xrx200_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(). Fixes: fe1a56420cf2 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: David S. Miller <davem@davemloft.net>