提交 e2e5c4c0 编写于 作者: D Dave Jones 提交者: David S. Miller

tcp: Add missing braces to do_tcp_setsockopt

Signed-off-by: NDave Jones <davej@fedoraproject.org>
Acked-by: NNeal Cardwell <ncardwell@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0c1db731
...@@ -2454,10 +2454,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level, ...@@ -2454,10 +2454,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
case TCP_THIN_DUPACK: case TCP_THIN_DUPACK:
if (val < 0 || val > 1) if (val < 0 || val > 1)
err = -EINVAL; err = -EINVAL;
else else {
tp->thin_dupack = val; tp->thin_dupack = val;
if (tp->thin_dupack) if (tp->thin_dupack)
tcp_disable_early_retrans(tp); tcp_disable_early_retrans(tp);
}
break; break;
case TCP_REPAIR: case TCP_REPAIR:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册