From b8b0521b4e9e021600411182f0b0b9a4e7f7c284 Mon Sep 17 00:00:00 2001 From: tick Date: Thu, 25 Oct 2007 11:48:53 +0000 Subject: 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 --- src/libgsmd/libgsmd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libgsmd') 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; } -- cgit v1.2.3