diff options
author | Dave Jones <davej@redhat.com> | 2013-09-05 13:43:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-05 14:31:02 -0400 |
commit | e2e5c4c07caf810d7849658dca42f598b3938e21 (patch) | |
tree | ef716ca3afedb09d1b435e5c78f18c4482d8603c /net | |
parent | 0c1db731bfcf3a9fd6c58132134f8b0f423552f0 (diff) | |
download | lwn-e2e5c4c07caf810d7849658dca42f598b3938e21.tar.gz lwn-e2e5c4c07caf810d7849658dca42f598b3938e21.zip |
tcp: Add missing braces to do_tcp_setsockopt
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index b2f6c74861af..95544e4028c0 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2454,10 +2454,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level, case TCP_THIN_DUPACK: if (val < 0 || val > 1) err = -EINVAL; - else + else { tp->thin_dupack = val; if (tp->thin_dupack) tcp_disable_early_retrans(tp); + } break; case TCP_REPAIR: |