Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: netcp: ethss: remove unnecessary pointer set to NULL

If statement has make sure the 'slave->phy' is NULL

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

YueHaibing and committed by
David S. Miller
a6ee84be 3dc9f558

-1
-1
drivers/net/ethernet/ti/netcp_ethss.c
··· 3206 3206 if (!slave->phy) { 3207 3207 dev_err(dev, "phy not found for slave %d\n", 3208 3208 slave->slave_num); 3209 - slave->phy = NULL; 3210 3209 } else { 3211 3210 dev_dbg(dev, "phy found: id is: 0x%s\n", 3212 3211 phydev_name(slave->phy));