Skip to content

Commit

Permalink
media: stv0288: use explicitly signed char
Browse files Browse the repository at this point in the history
commit 7392134 upstream.

With char becoming unsigned by default, and with `char` alone being
ambiguous and based on architecture, signed chars need to be marked
explicitly as such. Use `s8` and `u8` types here, since that's what
surrounding code does. This fixes:

drivers/media/dvb-frontends/stv0288.c:471 stv0288_set_frontend() warn: assigning (-9) to unsigned variable 'tm'
drivers/media/dvb-frontends/stv0288.c:471 stv0288_set_frontend() warn: we never enter this loop

Cc: Mauro Carvalho Chehab <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
zx2c4 authored and gregkh committed Jan 12, 2023
1 parent d167ebe commit 8dabeeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/media/dvb-frontends/stv0288.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,8 @@ static int stv0288_set_frontend(struct dvb_frontend *fe)
struct stv0288_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;

char tm;
unsigned char tda[3];
u8 reg, time_out = 0;
u8 tda[3], reg, time_out = 0;
s8 tm;

dprintk("%s : FE_SET_FRONTEND\n", __func__);

Expand Down

0 comments on commit 8dabeeb

Please sign in to comment.