提交 031002d7 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (11226): avoid warnings for request_ihex_firmware on dabusb and vicam

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: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 aeecea26
...@@ -334,7 +334,7 @@ static int dabusb_loadmem (pdabusb_t s, const char *fname) ...@@ -334,7 +334,7 @@ static int dabusb_loadmem (pdabusb_t s, const char *fname)
{ {
int ret; int ret;
const struct ihex_binrec *rec; const struct ihex_binrec *rec;
const struct firmware *fw; const struct firmware *uninitialized_var(fw);
dbg("Enter dabusb_loadmem (internal)"); dbg("Enter dabusb_loadmem (internal)");
......
...@@ -191,7 +191,7 @@ initialize_camera(struct vicam_camera *cam) ...@@ -191,7 +191,7 @@ initialize_camera(struct vicam_camera *cam)
{ {
int err; int err;
const struct ihex_binrec *rec; 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); err = request_ihex_firmware(&fw, "vicam/firmware.fw", &cam->udev->dev);
if (err) { if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册