dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] USB: Fix warning in drivers/usb/media/ov511.c

Gcc 4.0.2 had the warning:

drivers/usb/media/ov511.c: In function 'show_exposure':
drivers/usb/media/ov511.c:5642: warning: 'exp' may be used uninitialized
in this function

Here is the patch to fix that warning.

Signed-off-by: Matthew Martin <lihnucks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Matthew Martin 2006-02-15 15:41:25 -06:00 committed by Greg Kroah-Hartman
parent 1afc64a3d6
commit addf36fec0
1 changed files with 1 additions and 1 deletions

View File

@ -5639,7 +5639,7 @@ static CLASS_DEVICE_ATTR(hue, S_IRUGO, show_hue, NULL);
static ssize_t show_exposure(struct class_device *cd, char *buf)
{
struct usb_ov511 *ov = cd_to_ov(cd);
unsigned char exp;
unsigned char exp = 0;
if (!ov->dev)
return -ENODEV;