Browse Source

trxcon: l1sched: ensure n_bits_total is always initialized

Change-Id: I590cfe55365b7ad021a3d0925a0f1ea136e67125
Related: CID#205451
changes/66/28866/1
Vadim Yanitskiy 3 weeks ago
parent
commit
957661253e
  1. 2
      src/host/trxcon/src/sched_lchan_tchf.c
  2. 2
      src/host/trxcon/src/sched_lchan_tchh.c

2
src/host/trxcon/src/sched_lchan_tchf.c

@ -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;

2
src/host/trxcon/src/sched_lchan_tchh.c

@ -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;

Loading…
Cancel
Save