Variable n is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it. This allows the for-loop to be replaced with a
while-loop.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
 {
        struct dvb_demux *demux = feed->demux;
        struct dmx_section_feed *sec = &feed->feed.sec;
-       u16 limit, seclen, n;
+       u16 limit, seclen;
 
        if (sec->tsfeedp >= DMX_MAX_SECFEED_SIZE)
                return 0;
        /* to be sure always set secbuf */
        sec->secbuf = sec->secbuf_base + sec->secbufp;
 
-       for (n = 0; sec->secbufp + 2 < limit; n++) {
+       while (sec->secbufp + 2 < limit) {
                seclen = section_length(sec->secbuf);
                if (seclen <= 0 || seclen > DMX_MAX_SECTION_SIZE
                    || seclen + sec->secbufp > limit)