Commit afcc8e8c authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 79ef87ed
...@@ -257,7 +257,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd) ...@@ -257,7 +257,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd)
int opmode = 0; int opmode = 0;
struct tvp5150 *decoder = to_tvp5150(sd); struct tvp5150 *decoder = to_tvp5150(sd);
int input = 0; int input = 0;
unsigned char val; int val;
if ((decoder->output & TVP5150_BLACK_SCREEN) || !decoder->enable) if ((decoder->output & TVP5150_BLACK_SCREEN) || !decoder->enable)
input = 8; input = 8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment