mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
8a3f44a0bb
commit
c8f957df6e
|
@ -266,7 +266,7 @@ static int ar9331_sw_mbus_read(struct mii_bus *mbus, int port, int regnum)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue