[media] Staging: dt3155v4l: set error code on failure
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 May 2014 11:55:09 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 22:48:28 +0000 (19:48 -0300)
commit5b340ea0caac4c123a3bb989a43c021a2dc06fb2
tree5219f981f336e577d471f1e5eb862dd9c0295c45
parent68592773e35cafdf2a17ceaaf8553513ed4c86aa
[media] Staging: dt3155v4l: set error code on failure

We should be returning -ENOMEM here instead of success.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/dt3155v4l/dt3155v4l.c