diff options
author | Márton Németh <nm127@freemail.hu> | 2009-11-22 16:52:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:46 -0500 |
commit | f58d7856695b6a3a03a56250c6c591022ac9918f (patch) | |
tree | e37ea6f292467a97f776127d24b830fc84243d3e /drivers/media | |
parent | 296372e3b04a41853df1be6623a5bd634051458c (diff) |
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')
-rw-r--r-- | drivers/media/dvb/siano/smssdio.c | 2 |
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 { | |||
78 | 78 | ||
79 | static int smssdio_sendrequest(void *context, void *buffer, size_t size) | 79 | static int smssdio_sendrequest(void *context, void *buffer, size_t size) |
80 | { | 80 | { |
81 | int ret; | 81 | int ret = 0; |
82 | struct smssdio_device *smsdev; | 82 | struct smssdio_device *smsdev; |
83 | 83 | ||
84 | smsdev = context; | 84 | smsdev = context; |