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

staging: rtl8712: 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 8558ace8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -468,7 +468,6 @@ static int is_desired_network(struct _adapter *adapter,
		    pnetwork->network.IELength, wps_ie,
		    &wps_ielen))
			return true;
		else
		return false;
	}
	if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) &&