fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30963 )
Change subject: mobile: fix -Wlogical-not-parentheses in gsm48_cc_init() ......................................................................
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 --- M src/host/layer23/src/mobile/gsm48_cc.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/63/30963/1
diff --git a/src/host/layer23/src/mobile/gsm48_cc.c b/src/host/layer23/src/mobile/gsm48_cc.c index 1be53ba..8ff53c4 100644 --- a/src/host/layer23/src/mobile/gsm48_cc.c +++ b/src/host/layer23/src/mobile/gsm48_cc.c @@ -51,7 +51,7 @@
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");