diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-17 17:32:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-08 11:45:07 +0300 |
commit | 69eb1596b4df8ca834ba6f9a3df40f78943f6dca (patch) | |
tree | 969100e0ad591ac3a2f2456fd5570bbc781ff4a3 /drivers/staging/octeon | |
parent | b3bd0f2849f4480fc4f40bb954d27e58f4f0786b (diff) | |
download | linux-69eb1596b4df8ca834ba6f9a3df40f78943f6dca.tar.xz |
staging: octeon: remove unused variable
A cleanup patch left one local variable without a reference:
drivers/staging/octeon/ethernet-rx.c:339:28: warning: unused variable 'priv' [-Wunused-variable]
This removes the declaration too.
Fixes: 66812da3a689 ("staging: octeon: Use net_device_stats from struct net_device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon')
-rw-r--r-- | drivers/staging/octeon/ethernet-rx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index 7f8cf875157c..65a285631994 100644 --- a/drivers/staging/octeon/ethernet-rx.c +++ b/drivers/staging/octeon/ethernet-rx.c @@ -336,7 +336,6 @@ static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) if (likely((port < TOTAL_NUMBER_OF_PORTS) && cvm_oct_device[port])) { struct net_device *dev = cvm_oct_device[port]; - struct octeon_ethernet *priv = netdev_priv(dev); /* * Only accept packets for devices that are |