media: dvb-core: remove variable n, turn for-loop to while-loop
authorColin Ian King <colin.i.king@gmail.com>
Mon, 24 Oct 2022 14:29:54 +0000 (15:29 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 4 Nov 2022 15:56:45 +0000 (16:56 +0100)
commit9bf961085b3918773ae6b06680bb3d49bbf2c9f3
treece5330e50a8befdf4aaf17304213961cdcb2468b
parent94a7ad9283464b75b12516c5512541d467cefcf8
media: dvb-core: remove variable n, turn for-loop to while-loop

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>
drivers/media/dvb-core/dvb_demux.c