From: Bhaktipriya Shridhar Date: Thu, 10 Mar 2016 17:17:22 +0000 (+0530) Subject: staging: rtl8192u: ieee80211_crypt: Remove unnecessary else after return X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db7425b130cbcfaf468d3e45f8c5e1659f8d1fb9;p=linux-beck.git staging: rtl8192u: ieee80211_crypt: 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/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c index 3995620b3442..9cf90d040cfe 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c @@ -176,8 +176,7 @@ struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name) if (found_alg) return found_alg->ops; - else - return NULL; + return NULL; }