Netdev List
 help / color / mirror / Atom feed
* [PATCH] dccp: use roundup instead of opencoding
@ 2008-12-05 21:43 Ilpo Järvinen
  2008-12-05 21:47 ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Ilpo Järvinen @ 2008-12-05 21:43 UTC (permalink / raw)
  To: David Miller, Arnaldo Carvalho de Melo; +Cc: Netdev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 560 bytes --]


Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 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..1b75ece 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);
 
 	/* And store cached results */
 	icsk->icsk_pmtu_cookie = pmtu;
-- 
1.5.2.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-06  6:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 21:43 [PATCH] dccp: use roundup instead of opencoding Ilpo Järvinen
2008-12-05 21:47 ` Ben Hutchings
2008-12-05 21:53   ` Ilpo Järvinen
2008-12-06  6:40     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox