media: ipu3-cio2: Fix mbus_code processing in cio2_subdev_set_fmt()
authorPavel Machek <pavel@denx.de>
Wed, 30 Dec 2020 12:55:50 +0000 (13:55 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 16:09:57 +0000 (17:09 +0100)
commit334de4b45892f7e67074e1b1b2ac36fd3e091118
tree5aedb4bb44b017f72d1a0a6cecc5eb3454ff0481
parentdc1eb7c9c290cba52937c9a224b22a400bb0ffd7
media: ipu3-cio2: Fix mbus_code processing in cio2_subdev_set_fmt()

Loop was useless as it would always exit on the first iteration. Fix
it with right condition.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Fixes: a86cf9b29e8b ("media: ipu3-cio2: Validate mbus format in setting subdev format")
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org # v4.16 and up
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