trxcon: l1sched: ensure n_bits_total is always initialized

Change-Id: I590cfe55365b7ad021a3d0925a0f1ea136e67125
Related: CID#205451
This commit is contained in:
Vadim Yanitskiy 2022-07-30 17:25:22 +07:00
parent b084e8569f
commit 957661253e
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ int rx_tchf_fn(struct l1sched_lchan_state *lchan,
uint32_t fn, uint8_t bid, const sbit_t *bits,
const struct l1sched_meas_set *meas)
{
int n_errors = -1, n_bits_total, rc;
int n_errors = -1, n_bits_total = 0, rc;
sbit_t *buffer, *offset;
uint8_t l2[128], *mask;
size_t l2_len;

View File

@ -195,7 +195,7 @@ int rx_tchh_fn(struct l1sched_lchan_state *lchan,
uint32_t fn, uint8_t bid, const sbit_t *bits,
const struct l1sched_meas_set *meas)
{
int n_errors = -1, n_bits_total, rc;
int n_errors = -1, n_bits_total = 0, rc;
sbit_t *buffer, *offset;
uint8_t l2[128], *mask;
size_t l2_len;