]> git.hungrycats.org Git - linux/commitdiff
Fix ttpci bogus use of floating point by casting the
authorLinus Torvalds <torvalds@home.osdl.org>
Wed, 7 Jan 2004 10:00:08 +0000 (02:00 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 7 Jan 2004 10:00:08 +0000 (02:00 -0800)
constant expression properly.

drivers/media/dvb/ttpci/av7110.c

index ea26eac35df775c23f758eed1efeac0fc99b227e..eed2b5b12958d37c19adbb6a1b7fbb25a70ff211 100644 (file)
@@ -2673,9 +2673,9 @@ static int tuner_set_tv_freq (struct saa7146_dev *dev, u32 freq)
        buf[1] = div & 0xff;
        buf[2] = 0x8e;
 
-       if (freq < (u32) 16*168.25 )
+       if (freq < (u32) (16*168.25) )
                config = 0xa0;
-       else if (freq < (u32) 16*447.25)
+       else if (freq < (u32) (16*447.25) )
                config = 0x90;
        else
                config = 0x30;