staging: rtl8712: style fix unneeded else

This patch fixes a coding style issues in the rtl8712 module as noted
by checkpatch.pl where an unnecessary else is used.

It fixes the following checkpatch.pl warning:

WARNING: else is not generally useful after a break or return

Signed-off-by: Martin Homuth <martin@martinhomuth.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Martin Homuth 2017-12-19 00:24:06 +01:00 committed by Greg Kroah-Hartman
parent e34fc47a3f
commit 8400553b19

View file

@ -55,6 +55,7 @@ static u8 do_join(struct _adapter *padapter)
u8 *pibss = NULL; u8 *pibss = NULL;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct __queue *queue = &(pmlmepriv->scanned_queue); struct __queue *queue = &(pmlmepriv->scanned_queue);
int ret;
phead = &queue->queue; phead = &queue->queue;
plist = phead->next; plist = phead->next;
@ -74,8 +75,7 @@ static u8 do_join(struct _adapter *padapter)
if (!pmlmepriv->sitesurveyctrl.traffic_busy) if (!pmlmepriv->sitesurveyctrl.traffic_busy)
r8712_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid); r8712_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid);
return true; return true;
} else { }
int ret;
ret = r8712_select_and_join_from_scan(pmlmepriv); ret = r8712_select_and_join_from_scan(pmlmepriv);
if (ret == _SUCCESS) { if (ret == _SUCCESS) {
@ -90,8 +90,7 @@ static u8 do_join(struct _adapter *padapter)
struct wlan_bssid_ex *pdev_network = struct wlan_bssid_ex *pdev_network =
&(padapter->registrypriv.dev_network); &(padapter->registrypriv.dev_network);
pmlmepriv->fw_state = WIFI_ADHOC_MASTER_STATE; pmlmepriv->fw_state = WIFI_ADHOC_MASTER_STATE;
pibss = padapter->registrypriv.dev_network. pibss = padapter->registrypriv.dev_network.MacAddress;
MacAddress;
memcpy(&pdev_network->Ssid, memcpy(&pdev_network->Ssid,
&pmlmepriv->assoc_ssid, &pmlmepriv->assoc_ssid,
sizeof(struct ndis_802_11_ssid)); sizeof(struct ndis_802_11_ssid));
@ -114,7 +113,6 @@ static u8 do_join(struct _adapter *padapter)
&pmlmepriv->assoc_ssid); &pmlmepriv->assoc_ssid);
} }
} }
}
return true; return true;
} }