Skip to content

Commit

Permalink
[PATCH] USB: Fix warning in drivers/usb/media/ov511.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Martin authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 1afc64a commit addf36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/media/ov511.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit addf36f

Please sign in to comment.