Skip to content

Commit

Permalink
V4L/DVB (11226): avoid warnings for request_ihex_firmware on dabusb a…
Browse files Browse the repository at this point in the history
…nd 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: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 30, 2009
1 parent aeecea2 commit 031002d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/dabusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)");

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/usbvideo/vicam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 031002d

Please sign in to comment.