summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-16 00:24:46 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-16 00:24:46 +0000
commit8ddbb601f42e3c91fb2360758469c0004a07ef5d (patch)
treed78cbfeee6197bc970e1b26555892fcd09e37cce
parenta379bdf7528cb6213801d8c0a3a1997c9f258a47 (diff)
Remove useless test pointed out by Frank Denis <j@pureftpd.org>.
-rw-r--r--sys/netinet/ip_carp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index a84692b7adc..54555771c13 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.50 2004/05/13 08:21:18 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.51 2004/05/16 00:24:45 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -513,8 +513,7 @@ carp_input_c(struct mbuf *m, struct carp_header *ch, sa_family_t af)
/* XXX Replay protection goes here */
- if (sc->sc_init_counter)
- sc->sc_init_counter = 0;
+ sc->sc_init_counter = 0;
sc->sc_counter = tmp_counter;