Commit 77a04453 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 35f8673d
...@@ -2387,27 +2387,9 @@ u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc) ...@@ -2387,27 +2387,9 @@ u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc)
return tmp_Short; return tmp_Short;
} }
void void ActUpdateChannelAccessSetting(struct net_device *dev,
ActUpdateChannelAccessSetting(
struct net_device *dev,
enum wireless_mode WirelessMode, enum wireless_mode WirelessMode,
struct channel_access_setting *ChnlAccessSetting struct channel_access_setting *ChnlAccessSetting)
)
{ {
struct r8192_priv *priv = rtllib_priv(dev); return;
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);
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment