summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_softmac.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.c
parenta4eed41f961901e70453159bc8ff9ac5a2f0ef6b (diff)
downloadlinux-stable-7949be663f7d3693cde96bb65fc3cb3b981c5700.tar.gz
linux-stable-7949be663f7d3693cde96bb65fc3cb3b981c5700.tar.bz2
linux-stable-7949be663f7d3693cde96bb65fc3cb3b981c5700.zip
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.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index 19c3bffef73c..25b5b5e31612 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -776,7 +776,7 @@ inline struct sk_buff *rtllib_authentication_req(struct rtllib_network *beacon,
{
struct sk_buff *skb;
struct rtllib_authentication *auth;
- int len = 0;
+ int len;
len = sizeof(struct rtllib_authentication) + challengelen +
ieee->tx_headroom + 4;