mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
d2b88814c6
commit
61c1d052a3
|
@ -175,7 +175,7 @@ unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu)
|
||||||
* make it a multiple of 4
|
* 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 */
|
/* And store cached results */
|
||||||
icsk->icsk_pmtu_cookie = pmtu;
|
icsk->icsk_pmtu_cookie = pmtu;
|
||||||
|
|
Loading…
Reference in New Issue