From: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Date: Sat, 6 Dec 2008 06:39:49 +0000 (-0800)
Subject: dccp: use roundup instead of opencoding
X-Git-Tag: firefly_0821_release~16481^2~302
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=61c1d052a3c7d5acba3bd535aaffa5bb5d085181;p=firefly-linux-kernel-4.4.55.git

dccp: use roundup instead of opencoding

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
---

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;