V4L/DVB (9904): v4l: fix compile warning.
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 15 Dec 2008 10:15:32 +0000 (07:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:12 +0000 (09:39 -0200)
Fix (bogus) compile warning about uninitialized variable.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sh_mobile_ceu_camera.c

index d284d5d..c25ea00 100644 (file)
@@ -453,7 +453,7 @@ static int sh_mobile_ceu_try_bus_param(struct soc_camera_device *icd,
 static int sh_mobile_ceu_set_fmt(struct soc_camera_device *icd,
                                 __u32 pixfmt, struct v4l2_rect *rect)
 {
-       const struct soc_camera_data_format *cam_fmt;
+       const struct soc_camera_data_format *cam_fmt = NULL;
        int ret;
 
        /*