From 86ca5fdd5595aa3ea5d1bbdc88d54a71ba13d345 Mon Sep 17 00:00:00 2001 From: francescomani Date: Thu, 14 Mar 2024 11:05:41 +0100 Subject: [PATCH] duplicateExpression --- openair2/LAYER2/MAC/slicing/slicing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/MAC/slicing/slicing.c b/openair2/LAYER2/MAC/slicing/slicing.c index 48dd99afeb..cd31671c02 100644 --- a/openair2/LAYER2/MAC/slicing/slicing.c +++ b/openair2/LAYER2/MAC/slicing/slicing.c @@ -201,7 +201,7 @@ int addmod_static_slice_ul(slice_info_t *si, int index = _exists_slice(si->num, si->s, id); if (index >= 0) { for (int s = 0; s < si->num; ++s) { - static_slice_param_t *su = ul && si->s[s]->id == id && ul ? ul : si->s[s]->algo_data; + static_slice_param_t *su = ul && si->s[s]->id == id? ul : si->s[s]->algo_data; for (int i = su->posLow; i <= su->posHigh; ++i) { if (rbMap[i]) RET_FAIL(-33, "%s(): overlap of slices detected at RBG %d\n", __func__, i);