Commit 29896972 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

[TCP] tcp_lp: use BUILD_BUG_ON

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d4f3e9b7
...@@ -327,7 +327,7 @@ static struct tcp_congestion_ops tcp_lp = { ...@@ -327,7 +327,7 @@ static struct tcp_congestion_ops tcp_lp = {
static int __init tcp_lp_register(void) static int __init tcp_lp_register(void)
{ {
BUG_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE); BUILD_BUG_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE);
return tcp_register_congestion_control(&tcp_lp); return tcp_register_congestion_control(&tcp_lp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment