ss7: Drop unneeded else branch after early return

Change-Id: I845be6bfbf36ec8a38697ca92420483a9d41aa6c
This commit is contained in:
Pau Espin 2023-09-07 12:59:44 +02:00
parent d01c45918d
commit 08cb70e158
1 changed files with 2 additions and 3 deletions

View File

@ -1569,10 +1569,9 @@ static bool ipv6_sctp_supported(const char *host, bool bind)
LOGP(DLSS7, LOGL_NOTICE, "Default IPv6 address %s not supported: %s\n",
host, gai_strerror(rc));
return false;
} else {
freeaddrinfo(result);
return true;
}
freeaddrinfo(result);
return true;
}
/* Set default values for local and remote peer hosts if they are not yet set.