mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8712: remove unnecessary NULL check
List wlan_network is built properly with init_list_head and list_add_tail which cancels out its probability of being NULL because of the precence of list_head at the top of this structure. Hence, the NULL test can be omitted. Signed-off-by: Himadri Pandya <himadri18.07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
060ea4271a
commit
391f544e35
@ -1120,8 +1120,6 @@ int r8712_select_and_join_from_scan(struct mlme_priv *pmlmepriv)
|
|||||||
}
|
}
|
||||||
pnetwork = container_of(pmlmepriv->pscanned,
|
pnetwork = container_of(pmlmepriv->pscanned,
|
||||||
struct wlan_network, list);
|
struct wlan_network, list);
|
||||||
if (!pnetwork)
|
|
||||||
return _FAIL;
|
|
||||||
pmlmepriv->pscanned = pmlmepriv->pscanned->next;
|
pmlmepriv->pscanned = pmlmepriv->pscanned->next;
|
||||||
if (pmlmepriv->assoc_by_bssid) {
|
if (pmlmepriv->assoc_by_bssid) {
|
||||||
dst_ssid = pnetwork->network.MacAddress;
|
dst_ssid = pnetwork->network.MacAddress;
|
||||||
|
Loading…
Reference in New Issue
Block a user