media: ipu3-cio2: Simplify cleanup code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Aug 2020 16:07:24 +0000 (18:07 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Sep 2020 12:10:27 +0000 (14:10 +0200)
commitbbacb2740343ed6041c4e20fdc1996cc2c4917fb
tree1f0b6ec1573099b5b0fd5cb3850ea27f15c5ff98
parentd8fc21c17099635e8ebd986d042be65a6c6b5bd0
media: ipu3-cio2: Simplify cleanup code

The code looks more nicer if we use:
while (i--)
instead:
for (i = i - 1; i >= 0; i--)

This would also allow making 'i' unsigned again.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c