All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] Fix warning in drivers/usb/media/ov511.c
@ 2006-02-15  2:21 Matthew Martin
  2006-02-15  3:04 ` Greg KH
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Matthew Martin @ 2006-02-15  2:21 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]


Hello,
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>

---

--- orig-linux-2.6.15/drivers/usb/media/ov511.c	2006-02-14 15:15:10.000000000 -0600
+++ linux-2.6.15/drivers/usb/media/ov511.c	2006-02-14 15:12:32.000000000 -0600
@@ -5639,7 +5639,7 @@ static CLASS_DEVICE_ATTR(hue, S_IRUGO, s
 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;



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2006-02-18 16:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-15  2:21 [KJ] [PATCH] Fix warning in drivers/usb/media/ov511.c Matthew Martin
2006-02-15  3:04 ` Greg KH
2006-02-15 16:30 ` Nico Golde
2006-02-15 17:05 ` Greg KH
2006-02-15 21:41 ` Matthew Martin
2006-02-15 23:01 ` Nishanth Aravamudan
2006-02-15 23:16 ` Håkon Løvdal
2006-02-15 23:27 ` Greg KH
2006-02-15 23:31 ` Randy.Dunlap
2006-02-15 23:37 ` Håkon Løvdal
2006-02-16  0:38 ` Greg KH
2006-02-16  1:49 ` Matthew Martin
2006-02-16 14:51 ` Matthew Martin
2006-02-16 15:43 ` Nishanth Aravamudan
2006-02-16 17:20 ` Randy.Dunlap
2006-02-17 21:53 ` Alexey Dobriyan
2006-02-18 11:48 ` walter harms
2006-02-18 16:28 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.