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:
parent
400de9b1fe
commit
5a5aab7f40
1 changed files with 1 additions and 2 deletions
|
@ -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') &&
|
||||||
|
|
Loading…
Reference in a new issue