From: Santosh Nayak Date: Wed, 7 Mar 2012 02:41:03 +0000 (-0300) Subject: [media] dvb: negative value assigned to unsigned int in CDRXD() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3caaa20121495145cd8fef274d6eea5d90ee7182;p=mv-sheeva.git [media] dvb: negative value assigned to unsigned int in CDRXD() 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/drxd_hard.c b/drivers/media/dvb/frontends/drxd_hard.c index 7bf39cda83c..f380eb43e9d 100644 --- a/drivers/media/dvb/frontends/drxd_hard.c +++ b/drivers/media/dvb/frontends/drxd_hard.c @@ -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 {