summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-01-12 23:04:45 +0600
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-06-14 20:53:41 +0700
commit96fec1646d714ab1880bf69106c0c556fd849ba3 (patch)
treea059006ee40bb6e04d01a460629fbf9d724fc1f3
parent923e9b0b90622a7977c73ddd264d7cc48439098f (diff)
mobile: fix -Wlogical-not-parentheses in gsm48_cc_init()
Found by clang: gsm48_cc.c:54:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!cc->mncc_upqueue.next == 0) ^ ~~ Change-Id: Ic7ffd3aa25339e24a31bae1b7428f1f93e261858
-rw-r--r--src/host/layer23/src/mobile/gsm48_cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_cc.c b/src/host/layer23/src/mobile/gsm48_cc.c
index 4db19255..43c93fc3 100644
--- a/src/host/layer23/src/mobile/gsm48_cc.c
+++ b/src/host/layer23/src/mobile/gsm48_cc.c
@@ -52,7 +52,7 @@ int gsm48_cc_init(struct osmocom_ms *ms)
cc->ms = ms;
- if (!cc->mncc_upqueue.next == 0)
+ if (cc->mncc_upqueue.next != NULL)
return 0;
LOGP(DCC, LOGL_INFO, "init Call Control\n");