diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-11-01 00:02:15 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-11-01 00:02:15 +0000 |
commit | 11f5c053cc436fd41fd6e0494676ae2771ba05e2 (patch) | |
tree | 88581a474e82b6f29031335da1fb7760a0c0d029 /sys | |
parent | 830df3f8420b9a9e5efb47bd5a79ec1eaba144a4 (diff) |
remove redundant null check, ok ryan
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_pfsync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 36764bcc9aa..d45f606476b 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.70 2006/10/31 22:01:56 henning Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.71 2006/11/01 00:02:14 henning Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1631,8 +1631,8 @@ pfsync_update_tdb(struct tdb *tdb, int output) return (0); ifp = &sc->sc_if; - if (sc == NULL || (ifp->if_bpf == NULL && sc->sc_sync_ifp == NULL && - sc->sc_sync_peer.s_addr == INADDR_PFSYNC_GROUP)) { + if (ifp->if_bpf == NULL && sc->sc_sync_ifp == NULL && + sc->sc_sync_peer.s_addr == INADDR_PFSYNC_GROUP) { /* Don't leave any stale pfsync packets hanging around. */ if (sc->sc_mbuf_tdb != NULL) { m_freem(sc->sc_mbuf_tdb); |