Commit db7425b1 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Greg Kroah-Hartman
Browse files

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: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0834ffac
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name)

	if (found_alg)
		return found_alg->ops;
	else
	return NULL;
}