Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=18ff605a18b29ab1b52d31f96e2ecbaf7a042a3e
Commit:     18ff605a18b29ab1b52d31f96e2ecbaf7a042a3e
Parent:     6594ad829a98d5a9fe720d8d182a4e50fc81953a
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 21:43:57 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:03:43 2008 -0200

    V4L/DVB (6818): git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 
64-bit divide
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Acked-by: Chris Pascoe <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/frontends/zl10353.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/frontends/zl10353.c 
b/drivers/media/dvb/frontends/zl10353.c
index 091fbcc..e874ec8 100644
--- a/drivers/media/dvb/frontends/zl10353.c
+++ b/drivers/media/dvb/frontends/zl10353.c
@@ -144,7 +144,8 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend 
*fe,
                break;
        }
 
-       value = (bw * (u64)10 * (1 << 23) / 7 * 125 + adc_clock / 2);
+       value = (u64)10 * (1 << 23) / 7 * 125;
+       value = (bw * value) + adc_clock / 2;
        do_div(value, adc_clock);
        *nominal_rate = value;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to