projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b8881
)
dccp: use roundup instead of opencoding
author
Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi>
Sat, 6 Dec 2008 06:39:49 +0000
(22:39 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 6 Dec 2008 06:39:49 +0000
(22:39 -0800)
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/output.c
patch
|
blob
|
history
diff --git
a/net/dccp/output.c
b/net/dccp/output.c
index fea30cdc0bee00af3096859e3c07cb1355c3745e..22a618af48936aa9954978cdf8d94117e02d7bac 100644
(file)
--- 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;