Change in osmocom-bb[master]: trxcon/sched_trx.h: add missing parentheses to PRIM_IS_*

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Aug 15 07:57:57 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10453 )

Change subject: trxcon/sched_trx.h: add missing parentheses to PRIM_IS_*
......................................................................

trxcon/sched_trx.h: add missing parentheses to PRIM_IS_*

Change-Id: Ifa7d9f806b3f18f2dfec931252f5119441b30e8a
---
M src/host/trxcon/sched_trx.h
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index 17e30bf..cd9c0e4 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -296,10 +296,10 @@
 	(trx_lchan_desc[chan].link_id & TRX_CH_LID_SACCH)
 
 #define PRIM_IS_TCH(prim) \
-	CHAN_IS_TCH(prim->chan) && prim->payload_len != GSM_MACBLOCK_LEN
+	(CHAN_IS_TCH(prim->chan) && prim->payload_len != GSM_MACBLOCK_LEN)
 
 #define PRIM_IS_FACCH(prim) \
-	CHAN_IS_TCH(prim->chan) && prim->payload_len == GSM_MACBLOCK_LEN
+	(CHAN_IS_TCH(prim->chan) && prim->payload_len == GSM_MACBLOCK_LEN)
 
 struct trx_ts_prim *sched_prim_dequeue(struct llist_head *queue,
 	enum trx_lchan_type lchan_type);

-- 
To view, visit https://gerrit.osmocom.org/10453
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa7d9f806b3f18f2dfec931252f5119441b30e8a
Gerrit-Change-Number: 10453
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180815/355c8484/attachment.htm>


More information about the gerrit-log mailing list