aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/protocols
diff options
context:
space:
mode:
authorLuca Muscariello <muscariello@ieee.org>2022-10-19 17:51:12 +0200
committerLuca Muscariello <muscariello@ieee.org>2022-10-19 18:07:34 +0200
commit7b3426fb129f41ca05353b5e1dd66264a3a96d0f (patch)
treead1d9795f1b2130112b9bb8a14c68703b5b0940d /libtransport/src/protocols
parentd00ad4c5c437fd10c850bc073f94d2b790926b1d (diff)
fix(sonar): False positives Identical sub-expressions on both sides of operator
Ref: HICN-816 Signed-off-by: Luca Muscariello <muscariello@ieee.org> Change-Id: Ifdbcad287f89378dc2a35110fac01dba9c341ef9
Diffstat (limited to 'libtransport/src/protocols')
-rw-r--r--libtransport/src/protocols/fec/fec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/protocols/fec/fec.cc b/libtransport/src/protocols/fec/fec.cc
index 5881d4d92..d2105eb53 100644
--- a/libtransport/src/protocols/fec/fec.cc
+++ b/libtransport/src/protocols/fec/fec.cc
@@ -614,7 +614,7 @@ void fec_encode(struct fec_parms *code, gf *src[], gf *fec, int index, int sz) {
int i, k = code->k;
gf *p;
- if (GF_BITS > 8) sz /= 2;
+ if (GF_BITS > 8) sz /= 2; // NOSONAR
if (index < k)
memcpy(fec, src[index], sz * sizeof(gf));
@@ -698,7 +698,7 @@ int fec_decode(struct fec_parms *code, gf *pkt[], int index[], int sz) {
int row, col, k = code->k;
int i = 0;
- if (GF_BITS > 8) sz /= 2;
+ if (GF_BITS > 8) sz /= 2; // NOSONAR
if (shuffle(pkt, index, k)) /* error if true */
return 1;