Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113942
b: refs/heads/master
c: 28f947a
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent ab57be7 commit 9b34f21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80619de8117701cad1fb5526be6fcfe6fc2a6cc2
refs/heads/master: 28f947a95386861c54de2bf7753dda011c8e15c3
8 changes: 2 additions & 6 deletions trunk/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 9b34f21

Please sign in to comment.