]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Fix NULL vs IS_ERR() checking
authorMiaoqian Lin <linmq006@gmail.com>
Sat, 11 Dec 2021 14:01:53 +0000 (14:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 14:32:08 +0000 (14:32 +0000)
commit678e1e0d2700239cf804739551df6cf96cbaddca
tree433df149b7f0df623ea6bd9b6a54a7b4f8e2f623
parent08291b2937be4efdad16e91adba62a8cec52443e
net: bcmgenet: Fix NULL vs IS_ERR() checking

The phy_attach() function does not return NULL. It returns error pointers.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c