Skip to content

Commit ffd491f

Browse files
Dan CarpenterMauro Carvalho Chehab
authored andcommitted
[media] qt1010: signedness bug in qt1010_init_meas1()
qt1010_init_meas2() returns zero on success and negative error codes on failure so the return type should be int instead of u8. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent e0e52d4 commit ffd491f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/common/tuners/qt1010.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static int qt1010_init_meas1(struct qt1010_priv *priv,
288288
return qt1010_writereg(priv, 0x1e, 0x00);
289289
}
290290

291-
static u8 qt1010_init_meas2(struct qt1010_priv *priv,
291+
static int qt1010_init_meas2(struct qt1010_priv *priv,
292292
u8 reg_init_val, u8 *retval)
293293
{
294294
u8 i, val;

0 commit comments

Comments
 (0)