]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
net: dsa: b53: Uninitialized variable in b53_adjust_link()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 8 Sep 2018 08:39:25 +0000 (11:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 06:00:33 +0000 (23:00 -0700)
The "pause" variable is only initialized on BCM5301x.

Fixes: 5e004460f874 ("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>
drivers/net/dsa/b53/b53_common.c

index ea4256cd628b254a2337f809431b5998d500f28b..dbf5b86a07fe63cc8d31740f1a4b5c421560f88b 100644 (file)
@@ -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;