NETROM: Fix three if-statements in nr_state1_machine()
Subsystems (2)
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?
Signed-of-by Mika Kukkonen <[email protected]>
---
net/netrom/nr_in.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
net/netrom/nr_in.c +3 -3
@@ -99,7 +99,7 @@ static int nr_state1_machine(struct sockbreak ;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 sockbreak ;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 sockbreak ;case NR_RESET : -if (sysctl_netrom_reset_circuit); +if (sysctl_netrom_reset_circuit)nr_disconnect (sk,ECONNRESET );break ;