Skip to content

Commit

Permalink
staging: r8712u: Merging Realtek's latest (v2.6.6). Redundant NULL ch…
Browse files Browse the repository at this point in the history
…eck.

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>
  • Loading branch information
Ali Bahar authored and Greg Kroah-Hartman committed Sep 7, 2011
1 parent 7568ac9 commit 99f5ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8712/rtl8712_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 99f5ff3

Please sign in to comment.