[media] vpx3220: signedness bug in vpx3220_fp_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2016 10:05:52 +0000 (08:05 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:59:43 +0000 (07:59 -0200)
commit39de7d95f88d95a07f64b047c985fff31c006b5c
treed595c728e58c2d63f15f3d420d8ccdb53d81344b
parent74dc385cb450089b28c28be2c8a0baca296b95f9
[media] vpx3220: signedness bug in vpx3220_fp_read()

The intent was to return -1 on error and that's what the callers expect
but the current code returns USHRT_MAX instead.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/vpx3220.c