summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2009-11-23 00:52:31 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 23:41:46 +0300
commitf58d7856695b6a3a03a56250c6c591022ac9918f (patch)
treee37ea6f292467a97f776127d24b830fc84243d3e
parent296372e3b04a41853df1be6623a5bd634051458c (diff)
downloadlinux-f58d7856695b6a3a03a56250c6c591022ac9918f.tar.xz
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>
-rw-r--r--drivers/media/dvb/siano/smssdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/siano/smssdio.c b/drivers/media/dvb/siano/smssdio.c
index d1d652e7f890..24206cbda264 100644
--- a/drivers/media/dvb/siano/smssdio.c
+++ b/drivers/media/dvb/siano/smssdio.c
@@ -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;