staging: fsl-dpaa2: ethsw: Remove unused port_priv variable
[sfrench/cifs-2.6.git] / drivers / staging / fsl-dpaa2 / ethsw / ethsw.c
index e5a14c7c777fd0bc98e7504e3ace2f259883f3c6..1b3943b71254b6f53da073bb3fb9ab2ba3630288 100644 (file)
@@ -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;