summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-05-31 05:48:48 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-03 16:39:48 +0200
commita6ee84be2cb9d1d16efbe833c369122e676be09f (patch)
treede26e6111cda4b7e9419964931e50bbb7e0dfbdb /drivers/net/ethernet/ti
parentnet/smc: fix error return code in smc_setsockopt() (diff)
downloadlinux-a6ee84be2cb9d1d16efbe833c369122e676be09f.tar.xz
linux-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/ti')
-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));