Wei Yongjun 269b7c5ff7 ag71xx: fix return value check in ag71xx_probe()
In case of error, the function of_get_mac_address() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-18 20:33:48 -07:00
..
2019-06-14 19:47:05 -07:00
2019-07-15 20:52:18 +03:00
2019-06-21 09:58:42 -07:00
2019-07-03 11:24:38 -07:00
2019-07-08 19:25:19 -07:00
2019-07-08 19:25:19 -07:00
2019-06-25 14:26:54 +02:00