aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-12 09:47:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 19:22:38 -0400
commitafcc8e8c3474e5771ebdd49fe4f1c2ec1df997e7 (patch)
treefd9f3addb7ec1e3b206688d12eb58626c7195599 /drivers/media/video
parent79ef87edea252c3325f0be8aed684db72dc7e46c (diff)
[media] tvp5150: signedness bug in tvp5150_selmux()
tvp5150_read() returns negative error codes so this needs to be an int for the error handling to work. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/tvp5150.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index 0d897cb1774a..a751b6c146fd 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -257,7 +257,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd)
257 int opmode = 0; 257 int opmode = 0;
258 struct tvp5150 *decoder = to_tvp5150(sd); 258 struct tvp5150 *decoder = to_tvp5150(sd);
259 int input = 0; 259 int input = 0;
260 unsigned char val; 260 int val;
261 261
262 if ((decoder->output & TVP5150_BLACK_SCREEN) || !decoder->enable) 262 if ((decoder->output & TVP5150_BLACK_SCREEN) || !decoder->enable)
263 input = 8; 263 input = 8;