isdn: mux_timeslot_provide_bits(): remove unused 'count'
Change-Id: Id2c6d05c56424fa79ade84a29b8b70293dc690e4
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;