]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dccp: use roundup instead of opencoding
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 6 Dec 2008 06:39:49 +0000 (22:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Dec 2008 06:39:49 +0000 (22:39 -0800)
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
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;