diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-06-20 15:28:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-28 14:06:49 -0400 |
commit | fe653786ff9027216d841470b140593f3bf3a695 (patch) | |
tree | 1eed93db3bbacd1543e0f0a98fca38ce3d694964 /drivers/media | |
parent | 20420f92474b4ef36635f427aacafa8a80c124a6 (diff) |
[media] omap_vout: fix compiler warning
media-git/drivers/media/platform/omap/omap_vout.c: In function ‘omapvid_init’:
media-git/drivers/media/platform/omap/omap_vout.c:382:17: warning: ‘mode’ may be used uninitialized in this function [-Wmaybe-uninitialized]
vout->dss_mode = video_mode_to_dss_mode(vout);
^
media-git/drivers/media/platform/omap/omap_vout.c:332:23: note: ‘mode’ was declared here
enum omap_color_mode mode;
^
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Prabhakar Lad <prabhakar.lad@ti.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/omap/omap_vout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index d338b19da544..dfd0a21a0658 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c | |||
@@ -335,8 +335,6 @@ static int video_mode_to_dss_mode(struct omap_vout_device *vout) | |||
335 | ovl = ovid->overlays[0]; | 335 | ovl = ovid->overlays[0]; |
336 | 336 | ||
337 | switch (pix->pixelformat) { | 337 | switch (pix->pixelformat) { |
338 | case 0: | ||
339 | break; | ||
340 | case V4L2_PIX_FMT_YUYV: | 338 | case V4L2_PIX_FMT_YUYV: |
341 | mode = OMAP_DSS_COLOR_YUV2; | 339 | mode = OMAP_DSS_COLOR_YUV2; |
342 | break; | 340 | break; |
@@ -358,6 +356,7 @@ static int video_mode_to_dss_mode(struct omap_vout_device *vout) | |||
358 | break; | 356 | break; |
359 | default: | 357 | default: |
360 | mode = -EINVAL; | 358 | mode = -EINVAL; |
359 | break; | ||
361 | } | 360 | } |
362 | return mode; | 361 | return mode; |
363 | } | 362 | } |