diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:45:28 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:45:28 +0800 |
commit | ca5e51df44a80df3aa2e40fa17d5ef57eba1d606 (patch) | |
tree | c7d70e43c6782e2b302cff4d61d7ee52ceb9e6b3 /src | |
parent | 50d47aeb7208c99dc64da9a2cf11d1b96984c4d5 (diff) |
gsm48_rr.c: Move the access below the parsing (found by clang
Diffstat (limited to 'src')
-rw-r--r-- | src/host/layer23/src/mobile/gsm48_rr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_rr.c b/src/host/layer23/src/mobile/gsm48_rr.c index e92b1cba..d1f09638 100644 --- a/src/host/layer23/src/mobile/gsm48_rr.c +++ b/src/host/layer23/src/mobile/gsm48_rr.c @@ -4185,6 +4185,8 @@ static int gsm48_rr_rx_hando_cmd(struct osmocom_ms *ms, struct msgb *msg) rr->chan_req_val = ho->ho_ref; rr->chan_req_mask = 0x00; + tlv_parse(&tp, &gsm48_rr_att_tlvdef, ho->data, payload_len, 0, 0); + /* sync ind */ if (TLVP_PRESENT(&tp, GSM48_IE_SYNC_IND)) { gsm48_decode_sync_ind(rr, (struct gsm48_sync_ind *) @@ -4193,8 +4195,6 @@ static int gsm48_rr_rx_hando_cmd(struct osmocom_ms *ms, struct msgb *msg) rr->hando_sync_ind, rr->hando_rot, rr->hando_nci); } - tlv_parse(&tp, &gsm48_rr_att_tlvdef, ho->data, payload_len, 0, 0); - /* decode channel description (before time) */ if (TLVP_PRESENT(&tp, GSM48_IE_CH_DESC_1_BEFORE)) { struct gsm48_chan_desc *ccd = (struct gsm48_chan_desc *) |