diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2024-03-25 17:50:23 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-04-08 14:48:19 +0300 |
commit | dd44a571789fb3128dbe4daa6030e44d9e304911 (patch) | |
tree | 22d485e3f1e5c503a67e46d215c5e6640df8482c /drivers/staging/media | |
parent | 1a742c6010d136cb6c441a0f1dd2bfbfae3c4df2 (diff) | |
download | linux-dd44a571789fb3128dbe4daa6030e44d9e304911.tar.xz |
staging: media: tegra-video: Fix -Wmaybe-unitialized warn in gcc
Make sure that tegra20_vi_get_input_formats always assign a value for
yuv_input_format.
Fix:
drivers/staging/media/tegra-video/tegra20.c:624:72: warning: ‘yuv_input_format’ may be used uninitialized [-Wmaybe-uninitialized]
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/tegra-video/tegra20.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index c25286772603..630e2ff987a3 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -164,6 +164,7 @@ static void tegra20_vi_get_input_formats(struct tegra_vi_channel *chan, unsigned int input_mbus_code = chan->fmtinfo->code; (*main_input_format) = VI_INPUT_INPUT_FORMAT_YUV422; + (*yuv_input_format) = VI_INPUT_YUV_INPUT_FORMAT_UYVY; switch (input_mbus_code) { case MEDIA_BUS_FMT_UYVY8_2X8: |