Interworking: Remove unnecessary NULL check

nai_realm_find_eap() is called only in cases where the cred pointer is
not NULL.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-01-24 19:36:55 +02:00
parent 400de9b1fe
commit 5a5aab7f40

View file

@ -649,8 +649,7 @@ static struct nai_realm_eap * nai_realm_find_eap(struct wpa_cred *cred,
{ {
u8 e; u8 e;
if (cred == NULL || if (cred->username == NULL ||
cred->username == NULL ||
cred->username[0] == '\0' || cred->username[0] == '\0' ||
((cred->password == NULL || ((cred->password == NULL ||
cred->password[0] == '\0') && cred->password[0] == '\0') &&