summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano
diff options
context:
space:
mode:
authorMárton Németh2009-11-22 22:52:31 +0100
committerMauro Carvalho Chehab2009-12-05 21:41:46 +0100
commitf58d7856695b6a3a03a56250c6c591022ac9918f (patch)
treee37ea6f292467a97f776127d24b830fc84243d3e /drivers/media/dvb/siano
parentV4L/DVB (13415): videobuf-core: explicitly cast page count (diff)
downloadkernel-qcow2-linux-f58d7856695b6a3a03a56250c6c591022ac9918f.tar.gz
kernel-qcow2-linux-f58d7856695b6a3a03a56250c6c591022ac9918f.tar.xz
kernel-qcow2-linux-f58d7856695b6a3a03a56250c6c591022ac9918f.zip
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>
Diffstat (limited to 'drivers/media/dvb/siano')
-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;