diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-31 22:01:57 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-31 22:01:57 +0000 |
commit | bae8d83dba1dc1b5f9a82ec8607134b356e5326b (patch) | |
tree | 42a9f7ae08311f5c5d2789855eac3f9b810db92c | |
parent | d433301d89089486f068cb51cb90f78ed729e7fd (diff) |
slightly improve consustency and readability, no functional change
-rw-r--r-- | sys/net/if_pfsync.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 76159056b51..36764bcc9aa 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.69 2006/10/31 22:00:38 henning Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.70 2006/10/31 22:01:56 henning Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1282,9 +1282,8 @@ pfsync_request_update(struct pfsync_state_upd *up, struct in_addr *src) if (sc == NULL) return (0); - else - ifp = &sc->sc_if; + ifp = &sc->sc_if; if (sc->sc_mbuf == NULL) { if ((sc->sc_mbuf = pfsync_get_mbuf(sc, PFSYNC_ACT_UREQ, (void *)&sc->sc_statep.s)) == NULL) @@ -1328,9 +1327,8 @@ pfsync_clear_states(u_int32_t creatorid, char *ifname) if (sc == NULL) return (0); - else - ifp = &sc->sc_if; + ifp = &sc->sc_if; s = splnet(); if (sc->sc_mbuf != NULL) pfsync_sendout(sc); |