Skip to content

Commit

Permalink
[NETROM]: Fix three if-statements in nr_state1_machine()
Browse files Browse the repository at this point in the history
I found these while compiling with extra gcc warnings;
considering the indenting surely they are not intentional?

Signed-off-by: Mika Kukkonen <mikukkon@iki.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mika Kukkonen authored and David S. Miller committed Dec 22, 2005
1 parent d5ea4e2 commit 0d77d59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/netrom/nr_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int nr_state1_machine(struct sock *sk, struct sk_buff *skb,
break;

case NR_RESET:
if (sysctl_netrom_reset_circuit);
if (sysctl_netrom_reset_circuit)
nr_disconnect(sk, ECONNRESET);
break;

Expand Down Expand Up @@ -130,7 +130,7 @@ static int nr_state2_machine(struct sock *sk, struct sk_buff *skb,
break;

case NR_RESET:
if (sysctl_netrom_reset_circuit);
if (sysctl_netrom_reset_circuit)
nr_disconnect(sk, ECONNRESET);
break;

Expand Down Expand Up @@ -265,7 +265,7 @@ static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype
break;

case NR_RESET:
if (sysctl_netrom_reset_circuit);
if (sysctl_netrom_reset_circuit)
nr_disconnect(sk, ECONNRESET);
break;

Expand Down

0 comments on commit 0d77d59

Please sign in to comment.