summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-12-24 12:58:12 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-28 01:31:59 +0100
commitc8f957df6e338406128cadb2ee30e38f9a816ed6 (patch)
treebd49d23e42b43fbc8e4587cf8659975d03649d48 /drivers/net/dsa
parentppp: Remove redundant BUG_ON() check in ppp_pernet (diff)
downloadlinux-c8f957df6e338406128cadb2ee30e38f9a816ed6.tar.xz
linux-c8f957df6e338406128cadb2ee30e38f9a816ed6.zip
net: dsa: qca: ar9331: drop pointless static qualifier in ar9331_sw_mbus_init
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>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r--drivers/net/dsa/qca/ar9331.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c
index 0d1a7cd85fe8..da3bece75e21 100644
--- a/drivers/net/dsa/qca/ar9331.c
+++ b/drivers/net/dsa/qca/ar9331.c
@@ -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;