From: Jacko Dirks Date: Tue, 5 May 2020 12:33:31 +0000 (+0200) Subject: media: bcm2835: unicam: Fix uninitialized warning X-Git-Tag: accepted/tizen/unified/20200709.164653~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0f987945900884f79d0428c9f9037ce0dced0f7;p=platform%2Fkernel%2Flinux-rpi.git media: bcm2835: unicam: Fix uninitialized warning Signed-off-by: Jacko Dirks --- diff --git a/drivers/media/platform/bcm2835/bcm2835-unicam.c b/drivers/media/platform/bcm2835/bcm2835-unicam.c index 9c0b937..7906c28 100644 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c @@ -994,7 +994,7 @@ const struct unicam_fmt *get_first_supported_format(struct unicam_device *dev) struct v4l2_subdev_mbus_code_enum mbus_code; const struct unicam_fmt *fmt = NULL; unsigned int i; - int ret; + int ret = 0; for (i = 0; ret != -EINVAL && ret != -ENOIOCTLCMD; ++i) { memset(&mbus_code, 0, sizeof(mbus_code));