summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-17 15:13:03 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-17 16:24:12 -0700
commitc63d1e5c2d3d18a3a9590b8cd1b11e27b23e244d (patch)
tree0953669cff1ba0804673b90316269603ad8082b1 /drivers/net/dsa/sja1105
parentf517f2716c34087ca15a36e9f13dbca8bd2e3ffc (diff)
downloadlinux-c63d1e5c2d3d18a3a9590b8cd1b11e27b23e244d.tar.bz2
net: stmmac: fix unused-variable warning
When building without CONFIG_OF, we get a harmless build warning: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_phy_setup': drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:973:22: error: unused variable 'node' [-Werror=unused-variable] struct device_node *node = priv->plat->phy_node; Reword it so we always use the local variable, by making it the fwnode pointer instead of the device_node. Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105')
0 files changed, 0 insertions, 0 deletions