Remove duplicated pointer check
The following if statement verifies the exact same thing here. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
007fd6111d
commit
0bd29c1768
1 changed files with 0 additions and 2 deletions
|
@ -1252,8 +1252,6 @@ const char * ap_sta_wpa_get_keyid(struct hostapd_data *hapd,
|
|||
for (psk = ssid->wpa_psk; psk; psk = psk->next)
|
||||
if (os_memcmp(pmk, psk->psk, PMK_LEN) == 0)
|
||||
break;
|
||||
if (!psk)
|
||||
return NULL;
|
||||
if (!psk || !psk->keyid[0])
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue