mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-bts.git
				synced 2025-11-04 06:03:26 +00:00 
			
		
		
		
	l1sap: move struct osmo_rlp_frame_decoded to the if-scope
Change-Id: Ide99b35192246b0f7b2a4f31281e2d84984a9795
This commit is contained in:
		@@ -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 gsm_bts_trx *trx = lchan->ts->trx;
 | 
				
			||||||
	struct gsmtap_inst *inst = trx->bts->gsmtap.inst;
 | 
						struct gsmtap_inst *inst = trx->bts->gsmtap.inst;
 | 
				
			||||||
	struct osmo_rlp_frame_decoded rlpf;
 | 
					 | 
				
			||||||
	pbit_t *rlp_buf;
 | 
						pbit_t *rlp_buf;
 | 
				
			||||||
	uint16_t arfcn;
 | 
						uint16_t arfcn;
 | 
				
			||||||
	int byte_len;
 | 
						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) {
 | 
						if (trx->bts->gsmtap.rlp_skip_null) {
 | 
				
			||||||
 | 
							struct osmo_rlp_frame_decoded rlpf;
 | 
				
			||||||
		int rc = osmo_rlp_decode(&rlpf, 0, rlp_buf, byte_len);
 | 
							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)
 | 
							if (rc == 0 && rlpf.ftype == OSMO_RLP_FT_U && rlpf.u_ftype == OSMO_RLP_U_FT_NULL)
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user