[media] DVB: return meaningful error codes in dvb_frontend
authorAndreas Oberritter <obi@linuxtv.org>
Sun, 8 May 2011 23:03:34 +0000 (00:03 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:56 +0000 (09:30 -0300)
commitaff8ab5cc11c2c14b7ae3bb38cbe012c43b7dcef
tree278e775b573333939aa87b023fa4d9ff87853404
parent35d451b9990cf3386c515d371aafff5a0df46fd7
[media] DVB: return meaningful error codes in dvb_frontend

- Return values should not be ORed. Abort early instead.
- Return -EINVAL instead of -1.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c