Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6ee84be authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

net: netcp: ethss: remove unnecessary pointer set to NULL



If statement has make sure the 'slave->phy' is NULL

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3dc9f558
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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));