diff options
author | Mahati Chamarthy <mahati.chamarthy@gmail.com> | 2014-09-26 22:42:28 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-29 03:36:24 (GMT) |
commit | 6ab8609b92f1287957ae44c09de37caaf83251e5 (patch) | |
tree | f96f3101da5efc3acbcf61baf43ec0b611b42972 | |
parent | 5a2da4abe30a05c138acd1c1cf3c08154dfa7847 (diff) | |
download | linux-6ab8609b92f1287957ae44c09de37caaf83251e5.tar.xz |
Staging: rtl8192e: rtl8192e: Remove assigned unused variable
This patch removes an initialized variable which has never been used.
The following Coccinelle semantic patch was used to make this transformation:
@e@
identifier i;
position p;
type T;
@@
extern T i@p;
@@
type T;
identifier i;
constant C;
position p != e.p;
@@
- T i@p;
<+... when != i
- i = C;
...+>
The braces around if and else which become unnecessary after the transformation
were also removed.
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c index 79d86b9..2b1430d 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c @@ -153,18 +153,14 @@ static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg) static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); - u16 tx_rate; if ((priv->rtllib->current_network.mode == IEEE_A) || (priv->rtllib->current_network.mode == IEEE_N_5G) || ((priv->rtllib->current_network.mode == IEEE_N_24G) && - (!priv->rtllib->pHTInfo->bCurSuppCCK))) { - tx_rate = 60; + (!priv->rtllib->pHTInfo->bCurSuppCCK))) DMESG("send beacon frame tx rate is 6Mbpm\n"); - } else { - tx_rate = 10; + else DMESG("send beacon frame tx rate is 1Mbpm\n"); - } } static void cmpk_handle_interrupt_status(struct net_device *dev, u8 *pmsg) |