net: ll_temac: Fix return value check in temac_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 09:40:52 +0000 (09:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:39:22 +0000 (20:39 -0700)
commitc4db9934a33e5f276965a14b3eea7a6d64c85065
tree9ece078706339399f2c419f80a2bc314bc7d8851
parent0a699302be5986307b3dcf84ac7a0dd30f9e9305
net: ll_temac: Fix return value check in temac_probe()

In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should
be replaced with NULL test.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c