]> Git Repo - linux.git/commitdiff
[media] tvp5150: signedness bug in tvp5150_selmux()
authorDan Carpenter <[email protected]>
Thu, 12 Jul 2012 13:47:28 +0000 (10:47 -0300)
committerMauro Carvalho Chehab <[email protected]>
Mon, 30 Jul 2012 23:22:38 +0000 (20:22 -0300)
tvp5150_read() returns negative error codes so this needs to be an int
for the error handling to work.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/video/tvp5150.c

index 0d897cb1774a7bc5dd4b10951202f0b8d973955f..a751b6c146fdb523a6a8f3c00cdd9edf84f1f716 100644 (file)
@@ -257,7 +257,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd)
        int opmode = 0;
        struct tvp5150 *decoder = to_tvp5150(sd);
        int input = 0;
-       unsigned char val;
+       int val;
 
        if ((decoder->output & TVP5150_BLACK_SCREEN) || !decoder->enable)
                input = 8;
This page took 0.057526 seconds and 4 git commands to generate.