V4L/DVB (13416): smssdio: initialize return value
authorMárton Németh <nm127@freemail.hu>
Sun, 22 Nov 2009 21:52:31 +0000 (18:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:46 +0000 (18:41 -0200)
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>
drivers/media/dvb/siano/smssdio.c

index d1d652e..24206cb 100644 (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;