summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti/netcp_ethss.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-05-31 06:48:48 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-03 17:39:48 +0300
commita6ee84be2cb9d1d16efbe833c369122e676be09f (patch)
treede26e6111cda4b7e9419964931e50bbb7e0dfbdb /drivers/net/ethernet/ti/netcp_ethss.c
parent3dc9f558cdd2dfba06e021a6b85e990d1a0b2641 (diff)
downloadlinux-a6ee84be2cb9d1d16efbe833c369122e676be09f.tar.xz
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/ti/netcp_ethss.c')
-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));