diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-08-28 18:50:33 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:37 -0400 |
commit | 172589ccdde41b59861c92c4a971b95514ef24e3 (patch) | |
tree | ae775e6db4cb85aad1c74b6d93ba359f9dfe88ea /net/bridge | |
parent | c45248c70125cc374fdf264659643276c72801bf (diff) |
[NET]: DIV_ROUND_UP cleanup (part two)
Hopefully captured all single statement cases under net/. I'm
not too sure if there is some policy about #includes that are
"guaranteed" (ie., in the current tree) to be available through
some other #included header, so I just added linux/kernel.h to
each changed file that didn't #include it previously.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_stp_bpdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c index 60112bce6698..14f0c888eecc 100644 --- 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) | |||
64 | { | 64 | { |
65 | unsigned long ticks = ntohs(get_unaligned((__be16 *)src)); | 65 | unsigned long ticks = ntohs(get_unaligned((__be16 *)src)); |
66 | 66 | ||
67 | return (ticks * HZ + STP_HZ - 1) / STP_HZ; | 67 | return DIV_ROUND_UP(ticks * HZ, STP_HZ); |
68 | } | 68 | } |
69 | 69 | ||
70 | /* called under bridge lock */ | 70 | /* called under bridge lock */ |