]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/bridge/br_stp_bpdu.c
[NET]: DIV_ROUND_UP cleanup (part two)
[linux-2.6-omap-h63xx.git] / net / bridge / br_stp_bpdu.c
index 60112bce66984343e8ab13121c1304a1cde29739..14f0c888eecc4f87cb46fe2dd4a379bb501fbc25 100644 (file)
@@ -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 */