fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/38315?usp=email )
Change subject: l1sap: move struct osmo_rlp_frame_decoded to the if-scope ......................................................................
l1sap: move struct osmo_rlp_frame_decoded to the if-scope
Change-Id: Ide99b35192246b0f7b2a4f31281e2d84984a9795 --- M src/common/l1sap.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/15/38315/1
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 381dd2d..85e986d 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -433,7 +433,6 @@ { struct gsm_bts_trx *trx = lchan->ts->trx; struct gsmtap_inst *inst = trx->bts->gsmtap.inst; - struct osmo_rlp_frame_decoded rlpf; pbit_t *rlp_buf; uint16_t arfcn; int byte_len; @@ -490,6 +489,7 @@ }
if (trx->bts->gsmtap.rlp_skip_null) { + struct osmo_rlp_frame_decoded rlpf; int rc = osmo_rlp_decode(&rlpf, 0, rlp_buf, byte_len); if (rc == 0 && rlpf.ftype == OSMO_RLP_FT_U && rlpf.u_ftype == OSMO_RLP_U_FT_NULL) return;