diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-06-20 08:21:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-23 02:14:52 -0400 |
commit | aad40d3d0cd9b679e83f6a902ad1e2b8f7b4c9bb (patch) | |
tree | b7efc5a124e98e080c69334145e13a6e49b45c5c /drivers/media/video/cx231xx | |
parent | 54bb501c069bbe34cf8becf0a9985fc6873d6b21 (diff) |
V4L/DVB (12112): cx231xx: fix uninitialized variable.
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>
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-avcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c index 6a9464079b4c..96f07d1473fb 100644 --- a/drivers/media/video/cx231xx/cx231xx-avcore.c +++ b/drivers/media/video/cx231xx/cx231xx-avcore.c | |||
@@ -2055,7 +2055,7 @@ int cx231xx_initialize_stream_xfer(struct cx231xx *dev, u32 media_type) | |||
2055 | 2055 | ||
2056 | int cx231xx_capture_start(struct cx231xx *dev, int start, u8 media_type) | 2056 | int cx231xx_capture_start(struct cx231xx *dev, int start, u8 media_type) |
2057 | { | 2057 | { |
2058 | int rc; | 2058 | int rc = -1; |
2059 | u32 ep_mask = -1; | 2059 | u32 ep_mask = -1; |
2060 | struct pcb_config *pcb_config; | 2060 | struct pcb_config *pcb_config; |
2061 | 2061 | ||