summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_softmac_wx.c
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>2016-02-19 03:13:56 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 15:12:06 -0800
commit7949be663f7d3693cde96bb65fc3cb3b981c5700 (patch)
tree37e242af26aab7532b8c9e0a4ac9004de2990894 /drivers/staging/rtl8192e/rtllib_softmac_wx.c
parenta4eed41f961901e70453159bc8ff9ac5a2f0ef6b (diff)
downloadlinux-7949be663f7d3693cde96bb65fc3cb3b981c5700.tar.bz2
staging: rtl8192e: Drop useless initialisation
Removed initialisation of a varible if it is immediately reassigned. Changes were made using Coccinelle. @@ type T; constant C; expression e; identifier i; @@ T i - = C ; i = e; Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_softmac_wx.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac_wx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c
index 86f52ac7d33e..01a75bd21f86 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c
@@ -243,7 +243,7 @@ int rtllib_wx_get_rate(struct rtllib_device *ieee,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- u32 tmp_rate = 0;
+ u32 tmp_rate;
tmp_rate = TxCountToDataRate(ieee,
ieee->softmac_stats.CurrentShowTxate);