V4L/DVB (13416): smssdio: initialize return value

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>
This commit is contained in:
Márton Németh 2009-11-22 18:52:31 -03:00 committed by Mauro Carvalho Chehab
parent 296372e3b0
commit f58d785669
1 changed files with 1 additions and 1 deletions

View File

@ -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;