summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-20 21:32:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-21 10:07:10 +0300
commit9005feae4785436db61837e26a391015da7401d9 (patch)
treeb4e3635da2c94f11ececa29cab9a53dc5c68e18d /drivers/staging/rtl8712
parent6bcba96e8543a2c7edaf3fb7c0673680b7de92bf (diff)
downloadlinux-9005feae4785436db61837e26a391015da7401d9.tar.xz
staging: rtl8712: remove redundant pointer 'nic'
Pointer 'nic' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'nic' 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/rtl8712')
-rw-r--r--drivers/staging/rtl8712/rtl8712_led.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_led.c b/drivers/staging/rtl8712/rtl8712_led.c
index e9077347837e..0aa97c9dcced 100644
--- a/drivers/staging/rtl8712/rtl8712_led.c
+++ b/drivers/staging/rtl8712/rtl8712_led.c
@@ -89,9 +89,6 @@ static void BlinkWorkItemCallback(struct work_struct *work);
static void InitLed871x(struct _adapter *padapter, struct LED_871x *pLed,
enum LED_PIN_871x LedPin)
{
- struct net_device *nic;
-
- nic = padapter->pnetdev;
pLed->padapter = padapter;
pLed->LedPin = LedPin;
pLed->CurrLedState = LED_STATE_OFF;