Staging: rtl8192e: rtl_core.c: Remove unused variable
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 22 Aug 2015 10:58:11 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:37 +0000 (18:24 -0700)
This patch discards the variable ResetThreshold as it is not used
anywhere throughout the kernel.

Build tested it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index d6b46dfd01e133bbb16de5f636ae52e4c812c488..52e1e27cb7b0d83a6ef69f2bfbb06af03ce7933b 100644 (file)
@@ -1131,7 +1131,6 @@ static enum reset_type rtl819x_TxCheckStuck(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
        u8      QueueID;
-       u8      ResetThreshold = NIC_SEND_HANG_THRESHOLD_POWERSAVE;
        bool    bCheckFwTxCnt = false;
        struct rtl8192_tx_ring  *ring = NULL;
        struct sk_buff *skb = NULL;
@@ -1140,13 +1139,10 @@ static enum reset_type rtl819x_TxCheckStuck(struct net_device *dev)
 
        switch (priv->rtllib->ps) {
        case RTLLIB_PS_DISABLED:
-               ResetThreshold = NIC_SEND_HANG_THRESHOLD_NORMAL;
                break;
        case (RTLLIB_PS_MBCAST|RTLLIB_PS_UNICAST):
-               ResetThreshold = NIC_SEND_HANG_THRESHOLD_POWERSAVE;
                break;
        default:
-               ResetThreshold = NIC_SEND_HANG_THRESHOLD_POWERSAVE;
                break;
        }
        spin_lock_irqsave(&priv->irq_th_lock, flags);