aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-12-06 01:39:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-06 01:39:49 -0500
commit61c1d052a3c7d5acba3bd535aaffa5bb5d085181 (patch)
treec638a390d7f3967bd43a84a0cfe4ca35f1b629a2 /net/dccp
parentd2b88814c6a63e4018cd299826907a12068ffdb7 (diff)
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>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/output.c2
1 files changed, 1 insertions, 1 deletions
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)
175 * make it a multiple of 4 175 * make it a multiple of 4
176 */ 176 */
177 177
178 cur_mps -= ((5 + 6 + 10 + 6 + 6 + 6 + 3) / 4) * 4; 178 cur_mps -= roundup(5 + 6 + 10 + 6 + 6 + 6, 4);
179 179
180 /* And store cached results */ 180 /* And store cached results */
181 icsk->icsk_pmtu_cookie = pmtu; 181 icsk->icsk_pmtu_cookie = pmtu;