Netdev List
 help / color / mirror / Atom feed
* [PATCH] NETROM: Fix three if-statements in nr_state1_machine()
@ 2005-12-21 20:15 Mika Kukkonen
  0 siblings, 0 replies; only message in thread
From: Mika Kukkonen @ 2005-12-21 20:15 UTC (permalink / raw)
  To: ralf, netdev; +Cc: linux-kernel, linux-hams

I found these while compiling with extra gcc warnings;
considering the indenting surely they are not intentional?

Signed-of-by: Mika Kukkonen <mikukkon@iki.fi>

---

 net/netrom/nr_in.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/netrom/nr_in.c b/net/netrom/nr_in.c
index 004e859..a7d88b5 100644
--- a/net/netrom/nr_in.c
+++ b/net/netrom/nr_in.c
@@ -99,7 +99,7 @@ static int nr_state1_machine(struct sock
 		break;
 
 	case NR_RESET:
-		if (sysctl_netrom_reset_circuit);
+		if (sysctl_netrom_reset_circuit)
 			nr_disconnect(sk, ECONNRESET);
 		break;
 
@@ -130,7 +130,7 @@ static int nr_state2_machine(struct sock
 		break;
 
 	case NR_RESET:
-		if (sysctl_netrom_reset_circuit);
+		if (sysctl_netrom_reset_circuit)
 			nr_disconnect(sk, ECONNRESET);
 		break;
 
@@ -265,7 +265,7 @@ static int nr_state3_machine(struct sock
 		break;
 
 	case NR_RESET:
-		if (sysctl_netrom_reset_circuit);
+		if (sysctl_netrom_reset_circuit)
 			nr_disconnect(sk, ECONNRESET);
 		break;
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-21 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 20:15 [PATCH] NETROM: Fix three if-statements in nr_state1_machine() Mika Kukkonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox