Skip to content

Commit

Permalink
V4L/DVB: dvb: fix sparse warnings
Browse files Browse the repository at this point in the history
Fix sparse warnings in media/dvb/frontends:

drivers/media/dvb/frontends/dibx000_common.c:177:13: warning: non-ANSI function declaration of function 'systime'
drivers/media/dvb/frontends/tda665x.c:136:55: warning: right shift by bigger than source value

[mchehab@redhat.com: removed the change at dib0090 since it got fixed by a previous patch]
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Randy Dunlap authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 18718c9 commit 7ccf1ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/dibx000_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void dibx000_exit_i2c_master(struct dibx000_i2c_master *mst)
EXPORT_SYMBOL(dibx000_exit_i2c_master);


u32 systime()
u32 systime(void)
{
struct timespec t;

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/tda665x.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int tda665x_set_state(struct dvb_frontend *fe,
frequency += config->ref_divider >> 1;
frequency /= config->ref_divider;

buf[0] = (u8) (frequency & 0x7f00) >> 8;
buf[0] = (u8) ((frequency & 0x7f00) >> 8);
buf[1] = (u8) (frequency & 0x00ff) >> 0;
buf[2] = 0x80 | 0x40 | 0x02;
buf[3] = 0x00;
Expand Down

0 comments on commit 7ccf1ee

Please sign in to comment.