staging: r8712u: Merging Realtek's latest (v2.6.6). Redundant NULL check.
authorAli Bahar <ali@internetdog.org>
Sat, 3 Sep 2011 19:14:10 +0000 (03:14 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Sep 2011 00:00:31 +0000 (17:00 -0700)
Removed the redundant NULL check in LedControl871x.
As noted by Dan Carpenter, the address of a stack variable is never NULL.

Signed-off-by: Ali Bahar <ali@internetDog.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl8712_led.c

index cb1751e95f0696e0682345821df2c1ea7444c7a1..bac56e5caf123a1809afa7962b4c16f0bae393cb 100644 (file)
@@ -1786,7 +1786,7 @@ void LedControl871x(struct _adapter *padapter, enum LED_CTL_MODE LedAction)
 {
        struct led_priv *ledpriv = &(padapter->ledpriv);
 
-       if (ledpriv == NULL || ledpriv->bRegUseLed == false)
+       if (ledpriv->bRegUseLed == false)
                return;
        switch (ledpriv->LedStrategy) {
        case SW_LED_MODE0: