Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
69eb1596 b3bd0f28

-1
-1
drivers/staging/octeon/ethernet-rx.c
··· 336 336 if (likely((port < TOTAL_NUMBER_OF_PORTS) && 337 337 cvm_oct_device[port])) { 338 338 struct net_device *dev = cvm_oct_device[port]; 339 - struct octeon_ethernet *priv = netdev_priv(dev); 340 339 341 340 /* 342 341 * Only accept packets for devices that are