From 6d3c423ad200b561db9278cff3d91774eb6be215 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Wed, 15 Oct 2003 10:06:04 +0000 Subject: Explicit cast of "floating point" number (IMHO the compiler makes this automatically) as suggested by Linus Torvalds. --- linux/drivers/media/dvb/ttpci/av7110.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 3d9fdcc88..1e68c0ea6 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -2704,9 +2704,9 @@ static int tuner_set_tv_freq (struct saa7146_dev *dev, u32 freq) buf[1] = div & 0xff; buf[2] = 0x8e; - if (freq < 16*168.25 ) + if (freq < (u32) 16*168.25 ) config = 0xa0; - else if (freq < 16*447.25) + else if (freq < (u32) 16*447.25) config = 0x90; else config = 0x30; -- cgit v1.2.3