diff options
author | Matthew Martin <lihnucks@gmail.com> | 2006-02-15 16:41:25 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:58 -0500 |
commit | addf36fec058691f7ba4f95b5487d140f4a86f5a (patch) | |
tree | ae9093018c1bc2fc963ea564ecb0c02a9ea4f58c /drivers/usb | |
parent | 1afc64a3d68174fe524f11d92e045a30eacc927e (diff) |
[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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/media/ov511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/media/ov511.c b/drivers/usb/media/ov511.c index cfec8c61574e..1d887ec06080 100644 --- a/drivers/usb/media/ov511.c +++ b/drivers/usb/media/ov511.c | |||
@@ -5639,7 +5639,7 @@ static CLASS_DEVICE_ATTR(hue, S_IRUGO, show_hue, NULL); | |||
5639 | static ssize_t show_exposure(struct class_device *cd, char *buf) | 5639 | static ssize_t show_exposure(struct class_device *cd, char *buf) |
5640 | { | 5640 | { |
5641 | struct usb_ov511 *ov = cd_to_ov(cd); | 5641 | struct usb_ov511 *ov = cd_to_ov(cd); |
5642 | unsigned char exp; | 5642 | unsigned char exp = 0; |
5643 | 5643 | ||
5644 | if (!ov->dev) | 5644 | if (!ov->dev) |
5645 | return -ENODEV; | 5645 | return -ENODEV; |