summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-05-31 11:48:48 +0800
committerDavid S. Miller <davem@davemloft.net>2018-06-03 10:39:48 -0400
commita6ee84be2cb9d1d16efbe833c369122e676be09f (patch)
treede26e6111cda4b7e9419964931e50bbb7e0dfbdb /drivers/net/ethernet
parent3dc9f558cdd2dfba06e021a6b85e990d1a0b2641 (diff)
downloadlwn-a6ee84be2cb9d1d16efbe833c369122e676be09f.tar.gz
lwn-a6ee84be2cb9d1d16efbe833c369122e676be09f.zip
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/ti/netcp_ethss.c1
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 6a728d35e776..6e455a27a8de 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));