From 765861b82bc7ed50f362b368c32996a3930be2db Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Fri, 26 Mar 2010 00:07:35 +0800 Subject: [PATCH] Refactor: Use common bool to implement imm resp --- src/stkutil.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/stkutil.c b/src/stkutil.c index ecf1301..4e42ae4 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -637,18 +637,8 @@ static gboolean parse_dataobj_icon_id(struct comprehension_tlv_iter *iter, static gboolean parse_dataobj_imm_resp(struct comprehension_tlv_iter *iter, void *user) { - gboolean *resp = user; - - if (comprehension_tlv_iter_get_tag(iter) != - STK_DATA_OBJECT_TYPE_IMMEDIATE_RESPONSE) - return FALSE; - - if (comprehension_tlv_iter_get_length(iter) != 0) - return FALSE; - - *resp = TRUE; - - return TRUE; + return parse_dataobj_common_bool(iter, user, + STK_DATA_OBJECT_TYPE_IMMEDIATE_RESPONSE); } /* Defined in TS 102.223 Section 8.72 */ -- 2.7.4