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

Commit a35c52b7 authored by yuan linyu's avatar yuan linyu Committed by David S. Miller
Browse files

net: dpaa: fix maybe uninitialized var in dpaa_open()

parent 03c4cc38
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2468,7 +2468,8 @@ static int dpaa_open(struct net_device *net_dev)
	mac_dev = priv->mac_dev;
	dpaa_eth_napi_enable(priv);

	if (dpaa_phy_init(net_dev))
	err = dpaa_phy_init(net_dev);
	if (err)
		goto phy_init_failed;

	for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) {