V4L/DVB (11226): avoid warnings for request_ihex_firmware on dabusb and vicam
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Mar 2009 15:24:46 +0000 (12:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:41 +0000 (12:43 -0300)
drivers/media/video/usbvideo/vicam.c: In function ‘vicam_open’:
drivers/media/video/usbvideo/vicam.c:194: warning: ‘fw’ may be used uninitialized in this function
drivers/media/video/dabusb.c: In function ‘dabusb_probe’:
drivers/media/video/dabusb.c:337: warning: ‘fw’ may be used uninitialized in this function

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/dabusb.c
drivers/media/video/usbvideo/vicam.c

index f40c676489a40f6ab699d0fab457ee72216b42b4..a525a924edfadaef9daf7076c3cf4e627900e186 100644 (file)
@@ -334,7 +334,7 @@ static int dabusb_loadmem (pdabusb_t s, const char *fname)
 {
        int ret;
        const struct ihex_binrec *rec;
-       const struct firmware *fw;
+       const struct firmware *uninitialized_var(fw);
 
        dbg("Enter dabusb_loadmem (internal)");
 
index 2f1106338c085d7881940e54951d10b8ac93c44b..8d73979596f9d9542c35e10aa158d6792878099a 100644 (file)
@@ -191,7 +191,7 @@ initialize_camera(struct vicam_camera *cam)
 {
        int err;
        const struct ihex_binrec *rec;
-       const struct firmware *fw;
+       const struct firmware *uninitialized_var(fw);
 
        err = request_ihex_firmware(&fw, "vicam/firmware.fw", &cam->udev->dev);
        if (err) {