summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-12-06 07:39:49 +0100
committerDavid S. Miller <davem@davemloft.net>2008-12-06 07:39:49 +0100
commit61c1d052a3c7d5acba3bd535aaffa5bb5d085181 (patch)
treec638a390d7f3967bd43a84a0cfe4ca35f1b629a2
parenttty: driverdata and discdata are void * (diff)
downloadlinux-61c1d052a3c7d5acba3bd535aaffa5bb5d085181.tar.xz
linux-61c1d052a3c7d5acba3bd535aaffa5bb5d085181.zip
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>
-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)
* 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;