Skip to contentSkip to conversation

NETROM: Fix three if-statements in nr_state1_machine()

PATCH New Mika Kukkonen 1 participant 1 message Dec 21, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NETROM: Fix three if-statements in nr_state1_machine()

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

---

 net/netrom/nr_in.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
net/netrom/nr_in.c +3 -3
index 004e859..a7d88b5 100644
@@ -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;