Fixes coverity 369620

This commit is contained in:
AlaiaL 2021-04-23 12:35:19 +02:00 committed by Andre Puschmann
parent 23f0bd4d4f
commit 385b12a33a
1 changed files with 2 additions and 2 deletions

View File

@ -1061,13 +1061,13 @@ int srsran_uci_nr_encode_pusch_ack(srsran_uci_nr_t* q,
const srsran_uci_value_nr_t* value,
uint8_t* o)
{
int A = cfg->o_ack;
// Check inputs
if (q == NULL || cfg == NULL || value == NULL || o == NULL) {
return SRSRAN_ERROR_INVALID_INPUTS;
}
int A = cfg->o_ack;
// 6.3.2.1 UCI bit sequence generation
// 6.3.2.1.1 HARQ-ACK
bool has_csi_part2 = srsran_csi_has_part2(cfg->csi, cfg->nof_csi);