diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-02-13 00:39:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-13 02:31:30 +0100 |
commit | fd80a14363eec09cef018dc8a1074efc298a0a07 (patch) | |
tree | 2e50254f28f039f46e03a3dabcaed2b3977d1409 /drivers | |
parent | mlxsw: spectrum_switchdev: Remove unused variables (diff) | |
download | linux-fd80a14363eec09cef018dc8a1074efc298a0a07.tar.xz linux-fd80a14363eec09cef018dc8a1074efc298a0a07.zip |
staging: fsl-dpaa2: ethsw: Remove unused port_priv variable
After 1b8b589d9103 ("staging: fsl-dpaa2: ethsw: Remove getting
PORT_BRIDGE_FLAGS") we are not accessing any driver private data
anymore, remove port_priv which is unused.
Fixes: 1b8b589d9103 ("staging: fsl-dpaa2: ethsw: Remove getting PORT_BRIDGE_FLAGS")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index e5a14c7c777f..1b3943b71254 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -643,8 +643,6 @@ static void ethsw_teardown_irqs(struct fsl_mc_device *sw_dev) static int swdev_port_attr_get(struct net_device *netdev, struct switchdev_attr *attr) { - struct ethsw_port_priv *port_priv = netdev_priv(netdev); - switch (attr->id) { case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT: attr->u.brport_flags_support = BR_LEARNING | BR_FLOOD; |