From: Bhaktipriya Shridhar Date: Thu, 10 Mar 2016 17:13:34 +0000 (+0530) Subject: staging: rtl8192e: rtllib_crypt_tkip: Remove unnecessary else after return X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76134b3f19088b46552d0580bb0ee650fe9d2d2c;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; }