Messages in this thread Patch in this message | | | Date | Wed, 21 Dec 2005 22:15:13 +0200 | From | Mika Kukkonen <> | Subject | [PATCH] 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 <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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |