diff options
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 */ |