diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-01-26 09:22:39 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-27 08:30:49 +0100 |
commit | 3ee67ff5c2f9da513c77b8ab9dfc0067296dadec (patch) | |
tree | 57f3e4acbb04e3b5ee1e524910b4b5538b500ffc /openbsc/src/gprs/gprs_gsup_client.c | |
parent | abb347853317427a227592c4fa4b38e99f9e7152 (diff) |
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
Diffstat (limited to 'openbsc/src/gprs/gprs_gsup_client.c')
-rw-r--r-- | openbsc/src/gprs/gprs_gsup_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_gsup_client.c b/openbsc/src/gprs/gprs_gsup_client.c index f6e18c9fe..807b0c113 100644 --- a/openbsc/src/gprs/gprs_gsup_client.c +++ b/openbsc/src/gprs/gprs_gsup_client.c @@ -238,7 +238,7 @@ struct gprs_gsup_client *gprs_gsup_client_create(const char *ip_addr, rc = gsup_client_connect(gsupc); - if (rc < 0 && rc != -EINPROGRESS) + if (rc < 0) goto failed; gsupc->read_cb = read_cb; |