summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/af9013.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-09-16 20:22:43 +0300
committerAntti Palosaari <crope@iki.fi>2008-09-16 20:22:43 +0300
commit60a8c612ed0fc74b4eb8e0a0797c5f467522dd98 (patch)
tree36df14c8faf5b0f1d54fe156a503f8b31ef367cd /linux/drivers/media/dvb/frontends/af9013.c
parentdc76b0b035cd040558734c9e30257a03f5de19c6 (diff)
downloadmediapointer-dvb-s2-60a8c612ed0fc74b4eb8e0a0797c5f467522dd98.tar.gz
mediapointer-dvb-s2-60a8c612ed0fc74b4eb8e0a0797c5f467522dd98.tar.bz2
af9013: fix compile error coming from u64 div
From: Antti Palosaari <crope@iki.fi> - fix compile error coming from u64 div Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/af9013.c')
-rw-r--r--linux/drivers/media/dvb/frontends/af9013.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/af9013.c b/linux/drivers/media/dvb/frontends/af9013.c
index 480230b11..739d885b3 100644
--- a/linux/drivers/media/dvb/frontends/af9013.c
+++ b/linux/drivers/media/dvb/frontends/af9013.c
@@ -941,7 +941,6 @@ static int af9013_update_ber_unc(struct dvb_frontend *fe)
u32 error_bit_count = 0;
u32 total_bit_count = 0;
u32 abort_packet_count = 0;
- u64 numerator, denominator;
state->ber = 0;
@@ -979,11 +978,8 @@ static int af9013_update_ber_unc(struct dvb_frontend *fe)
total_bit_count = total_bit_count - abort_packet_count;
total_bit_count = total_bit_count * 204 * 8;
- if (total_bit_count) {
- numerator = error_bit_count * 1000000000;
- denominator = total_bit_count;
- state->ber = numerator / denominator;
- }
+ if (total_bit_count)
+ state->ber = error_bit_count * 1000000000 / total_bit_count;
state->ucblocks += abort_packet_count;