From 385b12a33afe93d312ed31008111bb57e968e904 Mon Sep 17 00:00:00 2001 From: AlaiaL Date: Fri, 23 Apr 2021 12:35:19 +0200 Subject: [PATCH] Fixes coverity 369620 --- lib/src/phy/phch/uci_nr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/phch/uci_nr.c b/lib/src/phy/phch/uci_nr.c index 6f862cf8f..b587a45d9 100644 --- a/lib/src/phy/phch/uci_nr.c +++ b/lib/src/phy/phch/uci_nr.c @@ -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);