fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmocore/+/33984 )
Change subject: isdn: mux_timeslot_provide_bits(): remove unused 'count'
......................................................................
isdn: mux_timeslot_provide_bits(): remove unused 'count'
Change-Id: Id2c6d05c56424fa79ade84a29b8b70293dc690e4
---
M src/isdn/i460_mux.c
1 file changed, 10 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/84/33984/1
diff --git a/src/isdn/i460_mux.c b/src/isdn/i460_mux.c
index 0e84816..b070bbd 100644
--- a/src/isdn/i460_mux.c
+++ b/src/isdn/i460_mux.c
@@ -245,16 +245,14 @@
/* provide one byte of multiplexed I.460 bits */
static uint8_t mux_timeslot_provide_bits(struct osmo_i460_timeslot *ts)
{
- int i, count = 0;
uint8_t ret = 0xff; /* unused bits must be '1' as per I.460 */
- for (i = 0; i < ARRAY_SIZE(ts->schan); i++) {
+ for (int i = 0; i < ARRAY_SIZE(ts->schan); i++) {
struct osmo_i460_subchan *schan = &ts->schan[i];
uint8_t bits, mask;
if (schan->rate == OSMO_I460_RATE_NONE)
continue;
- count++;
bits = mux_subchan_provide_bits(schan, &mask);
ret &= ~mask;
ret |= bits;
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/33984
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id2c6d05c56424fa79ade84a29b8b70293dc690e4
Gerrit-Change-Number: 33984
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange