diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libgsmd/libgsmd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libgsmd/libgsmd.c b/src/libgsmd/libgsmd.c index 9906ea8..b5d163f 100644 --- a/src/libgsmd/libgsmd.c +++ b/src/libgsmd/libgsmd.c @@ -222,11 +222,7 @@ int lgsm_send_simple(struct lgsm_handle *lh, int type, int sub_type) if (!gmh) return -ENOMEM; rc = lgsm_send(lh, gmh); - if (rc < gmh->len + sizeof(*gmh)) { - lgsm_gmh_free(gmh); - return -EIO; - } - lgsm_gmh_free(gmh); - return 0; + lgsm_gmh_free(gmh); + return rc; } |