]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/dccp/output.c
dccp: use roundup instead of opencoding
[net-next-2.6.git] / net / dccp / output.c
index fea30cdc0bee00af3096859e3c07cb1355c3745e..22a618af48936aa9954978cdf8d94117e02d7bac 100644 (file)
@@ -175,7 +175,7 @@ unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu)
         * make it a multiple of 4
         */
 
-       cur_mps -= ((5 + 6 + 10 + 6 + 6 + 6 + 3) / 4) * 4;
+       cur_mps -= roundup(5 + 6 + 10 + 6 + 6 + 6, 4);
 
        /* And store cached results */
        icsk->icsk_pmtu_cookie = pmtu;