Skip to content

Commit

Permalink
V4L/DVB (8973): af9013: fix compile error coming from u64 div
Browse files Browse the repository at this point in the history
- fix compile error coming from u64 div

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 80619de commit 28f947a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/media/dvb/frontends/af9013.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 28f947a

Please sign in to comment.