]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitab8eb798ddabddb2944401bf31ead9671cb97d95
tree433df149b7f0df623ea6bd9b6a54a7b4f8e2f623
parentc062f2a0b04d86c5b8c9d973bea43493eaca3d32
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