diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-03-10 22:43:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 76134b3f19088b46552d0580bb0ee650fe9d2d2c (patch) | |
tree | 6233a05dcfec3b5a0f5e53583d541cb8414b81a5 /drivers/staging/rtl8192e | |
parent | 372419776a023f7f0eede837cd866c2d544ba4a4 (diff) | |
download | linux-76134b3f19088b46552d0580bb0ee650fe9d2d2c.tar.gz linux-76134b3f19088b46552d0580bb0ee650fe9d2d2c.tar.bz2 linux-76134b3f19088b46552d0580bb0ee650fe9d2d2c.zip |
staging: rtl8192e: rtllib_crypt_tkip: Remove unnecessary else after return
This patch fixes the checkpatch warning that else is not generally
useful after a break or return.
This was done using Coccinelle:
@@
expression e2;
statement s1;
@@
if(e2) { ... return ...; }
-else
s1
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c index 2096d78913bd..7df824b5fc34 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c +++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c @@ -369,8 +369,7 @@ static int rtllib_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) if (!tcb_desc->bHwSec) return ret; - else - return 0; + return 0; } |