V4L/DVB (12112): cx231xx: fix uninitialized variable.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 20 Jun 2009 12:21:37 +0000 (09:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 23 Jun 2009 06:14:52 +0000 (03:14 -0300)
The variable 'rc' could be used uninitialized in the cx231xx_capture_start
function. Sri informed me that it should be initialized to -1.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-avcore.c

index 6a9464079b4cf7bb2161f0b1998d421bfbbbbc99..96f07d1473fbe0135d9c9a259c4ff8b32959e578 100644 (file)
@@ -2055,7 +2055,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;