]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Remove unnecessary NULL check
authorJouni Malinen <j@w1.fi>
Sat, 24 Jan 2015 17:36:55 +0000 (19:36 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Jan 2015 17:37:42 +0000 (19:37 +0200)
nai_realm_find_eap() is called only in cases where the cred pointer is
not NULL.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/interworking.c

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