From a6ee84be2cb9d1d16efbe833c369122e676be09f Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Thu, 31 May 2018 11:48:48 +0800 Subject: [PATCH] net: netcp: ethss: remove unnecessary pointer set to NULL If statement has make sure the 'slave->phy' is NULL Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- drivers/net/ethernet/ti/netcp_ethss.c | 1 - 1 file changed, 1 deletion(-) 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)); -- 2.30.2