Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159305
b: refs/heads/master
c: 8b97c7c
h: refs/heads/master
i:
  159303: 5ec1896
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Aug 2, 2009
1 parent c7cf31b commit a4be026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 39506a552b4b302540e1f9c6c93a122df353e57d
refs/heads/master: 8b97c7c283c5ba8f9f4dabd418fd7dcfcc8a387e
4 changes: 2 additions & 2 deletions trunk/drivers/atm/horizon.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ static int make_rate (const hrz_dev * dev, u32 c, rounding r,
pre = 1;
break;
case round_nearest:
pre = (br+(c<<div)/2)/(c<<div);
pre = DIV_ROUND_CLOSEST(br, c<<div);
// but p must be non-zero
if (!pre)
pre = 1;
Expand Down Expand Up @@ -671,7 +671,7 @@ static int make_rate (const hrz_dev * dev, u32 c, rounding r,
pre = DIV_ROUND_UP(br, c<<div);
break;
case round_nearest:
pre = (br+(c<<div)/2)/(c<<div);
pre = DIV_ROUND_CLOSEST(br, c<<div);
break;
default: /* round_up */
pre = br/(c<<div);
Expand Down

0 comments on commit a4be026

Please sign in to comment.