mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8558ace8b7
commit
336e8320e9
1 changed files with 1 additions and 2 deletions
|
@ -468,8 +468,7 @@ static int is_desired_network(struct _adapter *adapter,
|
||||||
pnetwork->network.IELength, wps_ie,
|
pnetwork->network.IELength, wps_ie,
|
||||||
&wps_ielen))
|
&wps_ielen))
|
||||||
return true;
|
return true;
|
||||||
else
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) &&
|
if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) &&
|
||||||
(pnetwork->network.Privacy == 0))
|
(pnetwork->network.Privacy == 0))
|
||||||
|
|
Loading…
Reference in a new issue