Skip to content

Commit

Permalink
staging: rtl8192e: Fix smatch info output for r8192E_dev.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
lwfinger authored and gregkh committed Sep 6, 2011
1 parent 35f8673 commit 77a0445
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions drivers/staging/rtl8192e/r8192E_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 77a0445

Please sign in to comment.