mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-24 16:43:39 +00:00
gprs: Don't check for EINPROGRESS in gprs_gsup_client_create
Currently, the return value of gsup_client_connect is checked whether it is < 0 and != -EINPROGESS. Since gsup_client_connect will only return a negative value on a few permanent errors (not including EINPROGRESS), rc is always != EINPROGRESS. This patch removes the explicit check againt -EINPROGRESS and just leaves the check rc < 0. Sponsored-by: On-Waves ehf
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
abb3478533
commit
3ee67ff5c2
@@ -238,7 +238,7 @@ struct gprs_gsup_client *gprs_gsup_client_create(const char *ip_addr,
|
|||||||
|
|
||||||
rc = gsup_client_connect(gsupc);
|
rc = gsup_client_connect(gsupc);
|
||||||
|
|
||||||
if (rc < 0 && rc != -EINPROGRESS)
|
if (rc < 0)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
gsupc->read_cb = read_cb;
|
gsupc->read_cb = read_cb;
|
||||||
|
|||||||
Reference in New Issue
Block a user