diff options
author | Max <msuraev@sysmocom.de> | 2019-03-21 11:40:39 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2019-03-21 13:16:39 +0100 |
commit | c53cb3ec830565f7a3c94925dc6805bee74b8a27 (patch) | |
tree | 1ea8d0c0f7d5f2288606a53e5f742b4c360c20e8 | |
parent | 803e420a4f23c9e83286d521eb39621f736d3e11 (diff) |
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
-rw-r--r-- | src/host/trxcon/l1ctl.c | 6 | ||||
-rw-r--r-- | src/host/trxcon/l1ctl_link.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c index 2f1d720c..eb148329 100644 --- a/src/host/trxcon/l1ctl.c +++ b/src/host/trxcon/l1ctl.c @@ -168,7 +168,7 @@ int l1ctl_tx_fbsb_conf(struct l1ctl_link *l1l, uint8_t result, 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 @@ static void fbsb_timer_cb(void *data) 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 @@ static int l1ctl_rx_fbsb_req(struct l1ctl_link *l1l, struct msgb *msg) 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 da64419a..a333e407 100644 --- a/src/host/trxcon/l1ctl_link.h +++ b/src/host/trxcon/l1ctl_link.h @@ -35,7 +35,7 @@ struct l1ctl_link { /* 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); |