diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-29 12:35:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-10 11:18:32 +0300 |
commit | f8aefb7de0e2fdc5ffc3eddcc8f67430fe3fca5f (patch) | |
tree | 0ec248f4030490d06619775f0da5cc22e755d6af /drivers/staging/fsl-dpaa2 | |
parent | f93861c2d6118f721a34656f3a23dc49400484af (diff) | |
download | linux-f8aefb7de0e2fdc5ffc3eddcc8f67430fe3fca5f.tar.xz |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2')
-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 ecdd3d84f956..0066ca3072c1 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -1014,10 +1014,8 @@ static void ethsw_switchdev_event_work(struct work_struct *work) container_of(work, struct ethsw_switchdev_event_work, work); struct net_device *dev = switchdev_work->dev; struct switchdev_notifier_fdb_info *fdb_info; - struct ethsw_port_priv *port_priv; rtnl_lock(); - port_priv = netdev_priv(dev); fdb_info = &switchdev_work->fdb_info; switch (switchdev_work->event) { |