From: Ilpo Järvinen Date: Sat, 6 Dec 2008 06:39:49 +0000 (-0800) Subject: dccp: use roundup instead of opencoding X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61c1d052a3c7d5acba3bd535aaffa5bb5d085181;p=linux-beck.git dccp: use roundup instead of opencoding Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- diff --git a/net/dccp/output.c b/net/dccp/output.c index fea30cdc0bee..22a618af4893 100644 --- a/net/dccp/output.c +++ b/net/dccp/output.c @@ -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;