[media] stv0367: signedness bug in stv0367_get_tuner_freq()
authorDan Carpenter <error27@gmail.com>
Sun, 6 Mar 2011 13:40:11 +0000 (10:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 19:37:50 +0000 (16:37 -0300)
commitbf512b2d9c39af31507f485b15b9b40e2a5c499c
tree3c20af1f2e83529d76d63bd90888eef673090036
parentc6384c886dfed806f07ae2f8ba4d3740b57cde9c
[media] stv0367: signedness bug in stv0367_get_tuner_freq()

We use err to store negative error codes so it should be signed.  And
if we return an error from stv0367_get_tuner_freq() that needs to be
handled properly as well.  (param->frequency is a u32).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv0367.c