diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-07-28 04:58:00 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-07-28 04:58:07 +0700 |
commit | 39469b9fcb0551dc1cc2547bc2d5c54084ea2e9f (patch) | |
tree | 7e8b2df051c42b701299341657648c5e3259045c /src/isdn/i460_mux.c | |
parent | 209bc3897434650d341e11cb76d5247cc4ce83f2 (diff) |
isdn: mux_timeslot_provide_bits(): remove unused 'count'
Change-Id: Id2c6d05c56424fa79ade84a29b8b70293dc690e4
Diffstat (limited to 'src/isdn/i460_mux.c')
-rw-r--r-- | src/isdn/i460_mux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/isdn/i460_mux.c b/src/isdn/i460_mux.c index 0e848166..b070bbdc 100644 --- a/src/isdn/i460_mux.c +++ b/src/isdn/i460_mux.c @@ -245,16 +245,14 @@ static uint8_t mux_subchan_provide_bits(struct osmo_i460_subchan *schan, uint8_t /* 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; |