net: dsa: qca: ar9331: drop pointless static qualifier in ar9331_sw_mbus_init
authorMao Wenan <maowenan@huawei.com>
Tue, 24 Dec 2019 11:58:12 +0000 (19:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:31:59 +0000 (16:31 -0800)
There is no need to set variable 'mbus' static
since new value always be assigned before use it.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/ar9331.c

index 0d1a7cd..da3bece 100644 (file)
@@ -266,7 +266,7 @@ error:
 static int ar9331_sw_mbus_init(struct ar9331_sw_priv *priv)
 {
        struct device *dev = priv->dev;
-       static struct mii_bus *mbus;
+       struct mii_bus *mbus;
        struct device_node *np, *mnp;
        int ret;