diff options
author | Ezequiel Garcia <elezegarcia@gmail.com> | 2012-09-17 08:49:38 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-27 03:47:48 -0400 |
commit | 4195ec7a8fa253cb7e598a8f99f005bc97d4ac15 (patch) | |
tree | 4b47fcdfc05378f42ac8874ce40de311c57988ff /drivers/media/platform/vivi.c | |
parent | 47054a357a788620b9ede8c678a2cec71c7155ea (diff) |
[media] vivi: Add return code check at vb2_queue_init()
This function returns an integer and it's mandatory
to check the return code.
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/vivi.c')
-rw-r--r-- | drivers/media/platform/vivi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index c396da12ad89..b366b050a3dd 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c | |||
@@ -1314,7 +1314,9 @@ static int __init vivi_create_instance(int inst) | |||
1314 | q->ops = &vivi_video_qops; | 1314 | q->ops = &vivi_video_qops; |
1315 | q->mem_ops = &vb2_vmalloc_memops; | 1315 | q->mem_ops = &vb2_vmalloc_memops; |
1316 | 1316 | ||
1317 | vb2_queue_init(q); | 1317 | ret = vb2_queue_init(q); |
1318 | if (ret) | ||
1319 | goto unreg_dev; | ||
1318 | 1320 | ||
1319 | mutex_init(&dev->mutex); | 1321 | mutex_init(&dev->mutex); |
1320 | 1322 | ||