l1sap: move struct osmo_rlp_frame_decoded to the if-scope

Change-Id: Ide99b35192246b0f7b2a4f31281e2d84984a9795
This commit is contained in:
Vadim Yanitskiy
2024-10-01 03:13:02 +07:00
committed by fixeria
parent 89415e7433
commit a880011a5f

View File

@@ -1857,7 +1857,6 @@ static void gsmtap_csd_rlp_process(struct gsm_lchan *lchan, bool is_uplink,
{
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;
@@ -1913,6 +1912,7 @@ static void gsmtap_csd_rlp_process(struct gsm_lchan *lchan, bool is_uplink,
}
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;