staging: r8712u: Merging Realtek's latest (v2.6.6). Redundant NULL check.

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>
This commit is contained in:
Ali Bahar 2011-09-04 03:14:10 +08:00 committed by Greg Kroah-Hartman
parent 7568ac94fa
commit 99f5ff39d2
1 changed files with 1 additions and 1 deletions

View 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: