staging: rtl8712: remove redundant pointer 'nic'
authorColin Ian King <colin.king@canonical.com>
Fri, 20 Jul 2018 18:32:29 +0000 (19:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:07:10 +0000 (09:07 +0200)
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>
drivers/staging/rtl8712/rtl8712_led.c

index e9077347837ec2eabcd26e36ee2beb8d4c2dcff7..0aa97c9dcced23c1b084a81df6f10b2a12a8dd49 100644 (file)
@@ -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;