Skip to content

Commit

Permalink
[media] dvb: negative value assigned to unsigned int in CDRXD()
Browse files Browse the repository at this point in the history
In CDRXD(), Negative number is assigned to unsigned variable
'state->noise_cal.tdCal2.

Members of 'SNoiseCal' should be 'signed short'.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Santosh Nayak authored and Mauro Carvalho Chehab committed Mar 19, 2012
1 parent f3033ae commit 3caaa20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/dvb/frontends/drxd_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ struct SCfgAgc {

struct SNoiseCal {
int cpOpt;
u16 cpNexpOfs;
u16 tdCal2k;
u16 tdCal8k;
short cpNexpOfs;
short tdCal2k;
short tdCal8k;
};

enum app_env {
Expand Down

0 comments on commit 3caaa20

Please sign in to comment.