Skip to content

Commit

Permalink
V4L/DVB (12112): cx231xx: fix uninitialized variable.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 23, 2009
1 parent 54bb501 commit aad40d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx231xx/cx231xx-avcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit aad40d3

Please sign in to comment.