bsc_init: Initialize rc on all paths to address a compiler warning
bsc_init.c:203:6: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] bsc_init.c:101:6: note: ‘rc’ was declared here
This commit is contained in:
parent
a5050b14c9
commit
d98136d25c
|
@ -124,6 +124,7 @@ static int rsl_si(struct gsm_bts_trx *trx, enum osmo_sysinfo_type i, int si_len)
|
|||
osmo_sitype2rsl(i),
|
||||
GSM_BTS_SI(bts, i), si_len);
|
||||
}
|
||||
rc = 0;
|
||||
} else
|
||||
rc = rsl_sacch_filling(trx, osmo_sitype2rsl(i),
|
||||
GSM_BTS_SI(bts, i), si_len);
|
||||
|
|
Loading…
Reference in New Issue