git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: DIV_ROUND_UP cleanup (part two)
[safe/jmp/linux-2.6]
/
net
/
bridge
/
br_stp_bpdu.c
diff --git
a/net/bridge/br_stp_bpdu.c
b/net/bridge/br_stp_bpdu.c
index
60112bc
..
14f0c88
100644
(file)
--- a/
net/bridge/br_stp_bpdu.c
+++ b/
net/bridge/br_stp_bpdu.c
@@
-64,7
+64,7
@@
static inline int br_get_ticks(const unsigned char *src)
{
unsigned long ticks = ntohs(get_unaligned((__be16 *)src));
- return
(ticks * HZ + STP_HZ - 1) / STP_HZ
;
+ return
DIV_ROUND_UP(ticks * HZ, STP_HZ)
;
}
/* called under bridge lock */