[media] Correct error code from -ENOMEM to -EINVAL.
authorHans Petter Selasky <hselasky@c2i.net>
Thu, 26 May 2011 07:49:52 +0000 (04:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:59 +0000 (17:52 -0300)
commit2c7988ab0effa9e41bd9c9db5cb33ddda870ca10
tree1b6ab521b4123156b72b4fd6ae975735c996e19f
parent5588dc2b025fd8b2188142b8d59efe562bd57d80
[media] Correct error code from -ENOMEM to -EINVAL.

Make sure the return value is set in all cases

>From 9b38a5c9878b5e4be2899ae291c4524f5f5fc218 Mon Sep 17 00:00:00 2001

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sr030pc30.c