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>
This commit is contained in:
parent
296372e3b0
commit
f58d785669
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue