Change in osmocom-bb[master]: trxcon: use bool for fbsb_conf_sent
Max
gerrit-no-reply at lists.osmocom.org
Thu Mar 21 15:06:58 UTC 2019
Max has submitted this change and it was merged. ( https://gerrit.osmocom.org/13353 )
Change subject: trxcon: use bool for fbsb_conf_sent
......................................................................
trxcon: use bool for fbsb_conf_sent
It's only used as a boolean value so let's set proper type for it.
Change-Id: Iaf50cdd19ac2139ee2d625671410a486edae2999
---
M src/host/trxcon/l1ctl.c
M src/host/trxcon/l1ctl_link.h
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
Vadim Yanitskiy: Looks good to me, approved
Pau Espin Pedrol: Looks good to me, approved
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 2f1d720..eb14832 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -168,7 +168,7 @@
conf->initial_freq_err = 0;
/* Ask SCH handler not to send L1CTL_FBSB_CONF anymore */
- l1l->fbsb_conf_sent = 1;
+ l1l->fbsb_conf_sent = true;
/* Abort FBSB expire timer */
if (osmo_timer_pending(&l1l->fbsb_timer))
@@ -314,7 +314,7 @@
conf->bsic = 0;
/* Ask SCH handler not to send L1CTL_FBSB_CONF anymore */
- l1l->fbsb_conf_sent = 1;
+ l1l->fbsb_conf_sent = true;
l1ctl_link_send(l1l, msg);
}
@@ -350,7 +350,7 @@
sched_trx_configure_ts(l1l->trx, 0, ch_config);
/* Ask SCH handler to send L1CTL_FBSB_CONF */
- l1l->fbsb_conf_sent = 0;
+ l1l->fbsb_conf_sent = false;
/* Only if current ARFCN differs */
if (l1l->trx->band_arfcn != band_arfcn) {
diff --git a/src/host/trxcon/l1ctl_link.h b/src/host/trxcon/l1ctl_link.h
index da64419..a333e40 100644
--- a/src/host/trxcon/l1ctl_link.h
+++ b/src/host/trxcon/l1ctl_link.h
@@ -35,7 +35,7 @@
/* L1CTL handlers specific */
struct osmo_timer_list fbsb_timer;
- uint8_t fbsb_conf_sent;
+ bool fbsb_conf_sent;
/* Shutdown callback */
void (*shutdown_cb)(struct l1ctl_link *l1l);
--
To view, visit https://gerrit.osmocom.org/13353
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: Iaf50cdd19ac2139ee2d625671410a486edae2999
Gerrit-Change-Number: 13353
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190321/34f188ce/attachment.html>
More information about the gerrit-log
mailing list