mirror of https://gitee.com/openkylin/linux.git
net: dsa: b53: Uninitialized variable in b53_adjust_link()
The "pause" variable is only initialized on BCM5301x.
Fixes: 5e004460f8
("net: dsa: b53: Add helper to set link parameters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
11957be20f
commit
f973b76888
|
@ -1025,7 +1025,7 @@ static void b53_adjust_link(struct dsa_switch *ds, int port,
|
|||
struct b53_device *dev = ds->priv;
|
||||
struct ethtool_eee *p = &dev->ports[port].eee;
|
||||
u8 rgmii_ctrl = 0, reg = 0, off;
|
||||
int pause;
|
||||
int pause = 0;
|
||||
|
||||
if (!phy_is_pseudo_fixed_link(phydev))
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue