Commit f58d7856 authored by Márton Németh's avatar Márton Németh Committed by Mauro Carvalho Chehab

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 296372e3
...@@ -78,7 +78,7 @@ struct smssdio_device { ...@@ -78,7 +78,7 @@ struct smssdio_device {
static int smssdio_sendrequest(void *context, void *buffer, size_t size) static int smssdio_sendrequest(void *context, void *buffer, size_t size)
{ {
int ret; int ret = 0;
struct smssdio_device *smsdev; struct smssdio_device *smsdev;
smsdev = context; smsdev = context;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment