Commit f8aefb7d authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

staging: fsl-dpaa2/ethsw: remove redundant pointer 'port_priv'

Pointer 'port_priv' is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
variable 'port_priv' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f93861c2
...@@ -1014,10 +1014,8 @@ static void ethsw_switchdev_event_work(struct work_struct *work) ...@@ -1014,10 +1014,8 @@ static void ethsw_switchdev_event_work(struct work_struct *work)
container_of(work, struct ethsw_switchdev_event_work, work); container_of(work, struct ethsw_switchdev_event_work, work);
struct net_device *dev = switchdev_work->dev; struct net_device *dev = switchdev_work->dev;
struct switchdev_notifier_fdb_info *fdb_info; struct switchdev_notifier_fdb_info *fdb_info;
struct ethsw_port_priv *port_priv;
rtnl_lock(); rtnl_lock();
port_priv = netdev_priv(dev);
fdb_info = &switchdev_work->fdb_info; fdb_info = &switchdev_work->fdb_info;
switch (switchdev_work->event) { switch (switchdev_work->event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment