diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-09-01 12:23:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-06 16:35:57 -0700 |
commit | 77a04453eb467db0b00b6134ec4c26fa1201860c (patch) | |
tree | 92a2890e2c700587b61ca2826bad38e6a2056eaa /drivers/staging | |
parent | 35f8673d11b60c6c887f8f28734233a7aa580afa (diff) | |
download | op-kernel-dev-77a04453eb467db0b00b6134ec4c26fa1201860c.zip op-kernel-dev-77a04453eb467db0b00b6134ec4c26fa1201860c.tar.gz |
staging: rtl8192e: Fix smatch info output for r8192E_dev.c
Smatch reports the following informational output:
CHECK drivers/staging/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/r8192E_dev.c +2404 ActUpdateChannelAccessSetting(13) info: ignoring unreachable code.
drivers/staging/rtl8192e/r8192E_dev.c +2404 ActUpdateChannelAccessSetting(13) info: ignoring unreachable code.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192e/r8192E_dev.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/drivers/staging/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/r8192E_dev.c index 899e4e5..808aab6 100644 --- a/drivers/staging/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/r8192E_dev.c @@ -2387,27 +2387,9 @@ u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc) return tmp_Short; } -void -ActUpdateChannelAccessSetting( - struct net_device *dev, +void ActUpdateChannelAccessSetting(struct net_device *dev, enum wireless_mode WirelessMode, - struct channel_access_setting *ChnlAccessSetting - ) + struct channel_access_setting *ChnlAccessSetting) { - struct r8192_priv *priv = rtllib_priv(dev); - - return; - - { - u16 SIFS_Timer; - - if (WirelessMode == WIRELESS_MODE_G) - SIFS_Timer = 0x0e0e; - else - SIFS_Timer = priv->SifsTime; - - priv->rtllib->SetHwRegHandler(dev, HW_VAR_SIFS, - (u8 *)&SIFS_Timer); - } - + return; } |