diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-05-31 11:48:48 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-03 10:39:48 -0400 |
commit | a6ee84be2cb9d1d16efbe833c369122e676be09f (patch) | |
tree | de26e6111cda4b7e9419964931e50bbb7e0dfbdb | |
parent | 3dc9f558cdd2dfba06e021a6b85e990d1a0b2641 (diff) | |
download | op-kernel-dev-a6ee84be2cb9d1d16efbe833c369122e676be09f.zip op-kernel-dev-a6ee84be2cb9d1d16efbe833c369122e676be09f.tar.gz |
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>
-rw-r--r-- | drivers/net/ethernet/ti/netcp_ethss.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethernet/ti/netcp_ethss.c index 6a728d3..6e455a2 100644 --- a/drivers/net/ethernet/ti/netcp_ethss.c +++ b/drivers/net/ethernet/ti/netcp_ethss.c @@ -3206,7 +3206,6 @@ static void init_secondary_ports(struct gbe_priv *gbe_dev, if (!slave->phy) { dev_err(dev, "phy not found for slave %d\n", slave->slave_num); - slave->phy = NULL; } else { dev_dbg(dev, "phy found: id is: 0x%s\n", phydev_name(slave->phy)); |