The patch number 10127 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[email protected]
------
From: Erik Andr?n <[email protected]>
stv06xx: Avoid having y unitialized
As pointed by gcc:
drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c: In function ?hdcs_set_size?:
drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c:301: warning: ?y? may be used
uninitialized in this function
Signed-off-by: Erik Andr?n <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff -r 75aa52e36cc9 -r 235b33a444ce
linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c
--- a/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c Tue Dec 30
01:31:59 2008 -0200
+++ b/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c Tue Dec 30
08:58:36 2008 +0100
@@ -317,8 +317,10 @@ static int hdcs_set_size(struct sd *sd,
y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2
+ hdcs->array.top;
- } else if (height > hdcs->array.height) {
- height = hdcs->array.height;
+ } else {
+ if (height > hdcs->array.height)
+ height = hdcs->array.height;
+
y = hdcs->array.top + (hdcs->array.height - height) / 2;
}
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/235b33a444cebb5cfa98e6caef122fc152a14daf
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits