Change in ...osmo-trx[master]: proto_trxd.c: Use bit-wise AND, not boolean AND

laforge gerrit-no-reply at lists.osmocom.org
Sat Jul 20 09:40:42 UTC 2019


laforge has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-trx/+/14846 )

Change subject: proto_trxd.c: Use bit-wise AND, not boolean AND
......................................................................

proto_trxd.c: Use bit-wise AND, not boolean AND

Change-Id: I974c91be7cc119b44c2fb0c53d08009c87de7bf1
Related: CID#202038
---
M Transceiver52M/proto_trxd.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/Transceiver52M/proto_trxd.c b/Transceiver52M/proto_trxd.c
index fff23da..cd82d55 100644
--- a/Transceiver52M/proto_trxd.c
+++ b/Transceiver52M/proto_trxd.c
@@ -27,7 +27,7 @@
 
 static void trxd_fill_common(struct trxd_hdr_common *common, const struct trx_ul_burst_ind *bi, uint8_t version)
 {
-	common->version = version && 0x07;
+	common->version = version & 0x07;
 	common->reserved = 0;
 	common->tn = bi->tn;
 	osmo_store32be(bi->fn, &common->fn);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/14846
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I974c91be7cc119b44c2fb0c53d08009c87de7bf1
Gerrit-Change-Number: 14846
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190720/ee072903/attachment.html>


More information about the gerrit-log mailing list