diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-12-05 22:39:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-05 22:39:49 -0800 |
commit | 61c1d052a3c7d5acba3bd535aaffa5bb5d085181 (patch) | |
tree | c638a390d7f3967bd43a84a0cfe4ca35f1b629a2 /net/dccp | |
parent | d2b88814c6a63e4018cd299826907a12068ffdb7 (diff) | |
download | op-kernel-dev-61c1d052a3c7d5acba3bd535aaffa5bb5d085181.zip op-kernel-dev-61c1d052a3c7d5acba3bd535aaffa5bb5d085181.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/output.c b/net/dccp/output.c index fea30cd..22a618a 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; |