Skip to content

Commit

Permalink
staging: rtl8192e: Remove SetRFPowerStateInProgress
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 2cb61ea commit fea84ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/rtl8192e/r8190_rtl8256.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,6 @@ SetRFPowerState8190(struct net_device *dev, RT_RF_POWER_STATE eRFPowerState)
bool bResult = true;

spin_lock(&priv->ps_lock);
if (priv->SetRFPowerStateInProgress) {
bResult = false;
goto out;
}
priv->SetRFPowerStateInProgress = true;

switch( eRFPowerState )
{
Expand Down Expand Up @@ -428,7 +423,6 @@ SetRFPowerState8190(struct net_device *dev, RT_RF_POWER_STATE eRFPowerState)
}

out:
priv->SetRFPowerStateInProgress = false;
spin_unlock(&priv->ps_lock);
return bResult;
}
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/r8192E.h
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,6 @@ typedef struct r8192_priv
bool bHwRadioOff;
//by amy for ps
bool RFChangeInProgress; // RF Chnage in progress, by Bruce, 2007-10-30
bool SetRFPowerStateInProgress;
RT_OP_MODE OpMode;
//by amy for reset_count
u32 reset_count;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,6 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
priv->ieee80211->RfOffReason = 0;
priv->RFChangeInProgress = false;
priv->bHwRfOffAction = 0;
priv->SetRFPowerStateInProgress = false;
priv->ieee80211->PowerSaveControl.bInactivePs = true;
priv->ieee80211->PowerSaveControl.bIPSModeBackup = false;

Expand Down

0 comments on commit fea84ba

Please sign in to comment.