diff options
author | Antti Palosaari <crope@iki.fi> | 2008-09-16 13:22:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:03 -0400 |
commit | 28f947a95386861c54de2bf7753dda011c8e15c3 (patch) | |
tree | 95a6f09feaf720c06057be3360fbd6a12efd626b /drivers/media/dvb | |
parent | 80619de8117701cad1fb5526be6fcfe6fc2a6cc2 (diff) |
V4L/DVB (8973): af9013: fix compile error coming from u64 div
- fix compile error coming from u64 div
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index 9f2129d544c5..50e1e3f300a0 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -941,7 +941,6 @@ static int af9013_update_ber_unc(struct dvb_frontend *fe) | |||
941 | u32 error_bit_count = 0; | 941 | u32 error_bit_count = 0; |
942 | u32 total_bit_count = 0; | 942 | u32 total_bit_count = 0; |
943 | u32 abort_packet_count = 0; | 943 | u32 abort_packet_count = 0; |
944 | u64 numerator, denominator; | ||
945 | 944 | ||
946 | state->ber = 0; | 945 | state->ber = 0; |
947 | 946 | ||
@@ -979,11 +978,8 @@ static int af9013_update_ber_unc(struct dvb_frontend *fe) | |||
979 | total_bit_count = total_bit_count - abort_packet_count; | 978 | total_bit_count = total_bit_count - abort_packet_count; |
980 | total_bit_count = total_bit_count * 204 * 8; | 979 | total_bit_count = total_bit_count * 204 * 8; |
981 | 980 | ||
982 | if (total_bit_count) { | 981 | if (total_bit_count) |
983 | numerator = error_bit_count * 1000000000; | 982 | state->ber = error_bit_count * 1000000000 / total_bit_count; |
984 | denominator = total_bit_count; | ||
985 | state->ber = numerator / denominator; | ||
986 | } | ||
987 | 983 | ||
988 | state->ucblocks += abort_packet_count; | 984 | state->ucblocks += abort_packet_count; |
989 | 985 | ||