netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add missing braces to do_tcp_setsockopt
@ 2013-09-05 17:43 Dave Jones
  2013-09-05 17:55 ` Neal Cardwell
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2013-09-05 17:43 UTC (permalink / raw)
  To: netdev; +Cc: Neal Cardwell, Yuchung Cheng

Signed-off-by: Dave Jones <davej@fedoraproject.org>

diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index b2f6c74..95544e4 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:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-05 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 17:43 [PATCH] Add missing braces to do_tcp_setsockopt Dave Jones
2013-09-05 17:55 ` Neal Cardwell
2013-09-05 17:58   ` Dave Jones
2013-09-05 18:18     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).