summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 11:48:53 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 11:48:53 +0000
commitb8b0521b4e9e021600411182f0b0b9a4e7f7c284 (patch)
tree0e0cab5e792c7c6f7e9ed4d1be8c2e78601833c4
parent9e6cee624e011a163892e8798fb904cb6f2e804a (diff)
adding return rc to lgsm_send_simple (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3266 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r--src/libgsmd/libgsmd.c8
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;
}
personal git repositories of Harald Welte. Your mileage may vary