net: netcp: ethss: remove unnecessary pointer set to NULL
authorYueHaibing <yuehaibing@huawei.com>
Thu, 31 May 2018 03:48:48 +0000 (11:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Jun 2018 14:39:48 +0000 (10:39 -0400)
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>
drivers/net/ethernet/ti/netcp_ethss.c

index 6a728d3..6e455a2 100644 (file)
@@ -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));