net: dsa: mv88e6xxx: use already declared variables
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 20 Jun 2016 17:14:00 +0000 (13:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 07:58:28 +0000 (03:58 -0400)
commitaa8ac3967e1f8d21b5f89d2a17b1281e1eb52522
tree7d82892ec3a18e0ecd3e7bac55b8ab2b70e88acb
parentfbae5a4895b8694126388ee033b6dd0b33fadf2b
net: dsa: mv88e6xxx: use already declared variables

In the MDIO probing function, dev is already assigned to &mdiodev->dev
and np is already assigned to mdiodev->dev.of_node, so use them.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c