]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mediatek: checking for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Mar 2016 07:18:49 +0000 (10:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 22:28:11 +0000 (18:28 -0400)
commit977bc20cf66367a530d17696f7e1783510a115b7
tree8ace513e42a984a3dc1b3a4cb38d389f703feb9a
parentfe3a5f6c795810edb1646a840fec3c8c350c2a4e
mediatek: checking for IS_ERR() instead of NULL

of_phy_connect() returns NULL on error, it never returns error pointers.

Fixes: 656e705243fd ('net-next: mediatek: add support for MT7623 ethernet')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c