Skip to content

Commit c8f957d

Browse files
Mao Wenandavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Oleksij Rempel <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8a3f44a commit c8f957d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/qca/ar9331.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static int ar9331_sw_mbus_read(struct mii_bus *mbus, int port, int regnum)
266266
static int ar9331_sw_mbus_init(struct ar9331_sw_priv *priv)
267267
{
268268
struct device *dev = priv->dev;
269-
static struct mii_bus *mbus;
269+
struct mii_bus *mbus;
270270
struct device_node *np, *mnp;
271271
int ret;
272272

0 commit comments

Comments
 (0)