summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-20 14:21:37 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-20 14:21:37 +0200
commitba1331c45ace13485b9d68ac3f2d574f1e80e229 (patch)
tree95d3e31204802aae3a0151f964c78cf88b72888b /linux/drivers/media/video
parent0d71e86e4235ce3ffe135f5b5d39118c0f0597c5 (diff)
downloadmediapointer-dvb-s2-ba1331c45ace13485b9d68ac3f2d574f1e80e229.tar.gz
mediapointer-dvb-s2-ba1331c45ace13485b9d68ac3f2d574f1e80e229.tar.bz2
cx231xx: fix uninitialized variable.
From: Hans Verkuil <hverkuil@xs4all.nl> The variable 'rc' could be used uninitialized in the cx231xx_capture_start function. Sri informed me that it should be initialized to -1. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/cx231xx/cx231xx-avcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx231xx/cx231xx-avcore.c b/linux/drivers/media/video/cx231xx/cx231xx-avcore.c
index bbbb3f50e..28f48f41f 100644
--- a/linux/drivers/media/video/cx231xx/cx231xx-avcore.c
+++ b/linux/drivers/media/video/cx231xx/cx231xx-avcore.c
@@ -2046,7 +2046,7 @@ int cx231xx_initialize_stream_xfer(struct cx231xx *dev, u32 media_type)
int cx231xx_capture_start(struct cx231xx *dev, int start, u8 media_type)
{
- int rc;
+ int rc = -1;
u32 ep_mask = -1;
struct pcb_config *pcb_config;