Skip to content

Commit

Permalink
V4L/DVB (13416): smssdio: initialize return value
Browse files Browse the repository at this point in the history
The return value may be used uninitialized when the size parameter
happens to be 0.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Márton Németh authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 296372e commit f58d785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/siano/smssdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct smssdio_device {

static int smssdio_sendrequest(void *context, void *buffer, size_t size)
{
int ret;
int ret = 0;
struct smssdio_device *smsdev;

smsdev = context;
Expand Down

0 comments on commit f58d785

Please sign in to comment.