l1sap: Avoid compiler warnings regarding uninitialized nmsg

This commit is contained in:
Harald Welte 2014-08-27 20:18:35 +02:00
parent 3a381367a6
commit 80f039973e
1 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ static int ph_data_req(struct gsm_bts_trx *trx, struct msgb *msg,
{
struct femtol1_hdl *fl1 = trx_femtol1_hdl(trx);
uint32_t u32Fn;
uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi;
uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi = 0;
uint8_t chan_nr, link_id;
GsmL1_Prim_t *l1p;
int len;
@ -549,7 +549,7 @@ static int ph_tch_req(struct gsm_bts_trx *trx, struct msgb *msg,
uint8_t u8Tn, subCh, u8BlockNbr = 0, sapi, ss;
uint8_t chan_nr;
GsmL1_Prim_t *l1p;
struct msgb *nmsg;
struct msgb *nmsg = NULL;
chan_nr = l1sap->u.tch.chan_nr;
u32Fn = l1sap->u.tch.fn;