staging: rtl8192e: Fix smatch info output for r8192E_dev.c
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 1 Sep 2011 17:23:15 +0000 (12:23 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:35:57 +0000 (16:35 -0700)
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>
drivers/staging/rtl8192e/r8192E_dev.c

index 899e4e5e98f39eab5b89aa29a68522fae9d09b88..808aab6fa5ef70b23baf41cbe4bbad20ca6d9f9c 100644 (file)
@@ -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;
 }