[media] dvb: negative value assigned to unsigned int in CDRXD()
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Wed, 7 Mar 2012 02:41:03 +0000 (23:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 17:39:14 +0000 (14:39 -0300)
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>
drivers/media/dvb/frontends/drxd_hard.c

index 7bf39cda83c55ef8305a72e5ca9a571db9d86e8b..f380eb43e9d5a66137fcff49615c1342040d158a 100644 (file)
@@ -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 {