From 3e85c3bed02b3c7256541170330a20f9d50c50bd Mon Sep 17 00:00:00 2001 From: dvdgrgrtt Date: Mon, 17 Jan 2022 11:25:03 +0100 Subject: [PATCH] Improve coding style --- lib/src/phy/phch/sch_nr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/phch/sch_nr.c b/lib/src/phy/phch/sch_nr.c index 77d43f106..27faacddd 100644 --- a/lib/src/phy/phch/sch_nr.c +++ b/lib/src/phy/phch/sch_nr.c @@ -596,6 +596,7 @@ static int sch_nr_decode(srsran_sch_nr_t* q, // Counter of code blocks that have matched CRC uint32_t cb_ok = 0; + res->crc = false; // For each code block... uint32_t j = 0; @@ -693,7 +694,6 @@ static int sch_nr_decode(srsran_sch_nr_t* q, // Not all CB are decoded, skip TB union and CRC check if (cb_ok != cfg.C) { - res->crc = false; return SRSRAN_SUCCESS; }