staging/rtl8187se: Remove unused/unnecessary variables
authorPeter Huewe <peterhuewe@gmx.de>
Wed, 13 Feb 2013 02:58:17 +0000 (03:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:28:36 +0000 (10:28 -0800)
The local variables priv and ieee are not used and thus can be removed.
The local variable u1bAIFS is not used/read after assignment and thus
can be removed.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8185b_init.c

index 4aca954283dc3bbf0bf13d2215f6c452d8964a2e..1e54eadb054e13d6e5a24dad73fd754f47bfbfc1 100644 (file)
@@ -866,10 +866,7 @@ void ActUpdateChannelAccessSetting(struct net_device *dev,
                                   WIRELESS_MODE WirelessMode,
                                   PCHANNEL_ACCESS_SETTING ChnlAccessSetting)
 {
-       struct          r8180_priv *priv = ieee80211_priv(dev);
-       struct          ieee80211_device *ieee = priv->ieee80211;
        AC_CODING       eACI;
-       u8              u1bAIFS;
 
        /*
         *      <RJ_TODO_8185B>
@@ -891,8 +888,6 @@ void ActUpdateChannelAccessSetting(struct net_device *dev,
        write_nic_byte(dev, SIFS, ChnlAccessSetting->SIFS_Timer);
        write_nic_byte(dev, SLOT, ChnlAccessSetting->SlotTimeTimer); /* Rewrited from directly use PlatformEFIOWrite1Byte(), by Annie, 2006-03-29. */
 
-       u1bAIFS = aSifsTime + (2 * ChnlAccessSetting->SlotTimeTimer);
-
        write_nic_byte(dev, EIFS, ChnlAccessSetting->EIFS_Timer);
 
        write_nic_byte(dev, AckTimeOutReg, 0x5B); /* <RJ_EXPR_QOS> Suggested by wcchu, it is the default value of EIFS register, 2005.12.08. */