aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-12-16 03:12:44 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-12-16 03:12:44 +0000
commitaba53ef0a6df84fad13bfe88a3f686947070ed2d (patch)
tree9c5e71146496827dcd1b1c6a4660c157680039f9 /sys
parentd78be3a909d986b256406e45cc4738d4c641b4e3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/icmp6.c4
-rw-r--r--sys/netinet6/nd6.c4
-rw-r--r--sys/netinet6/raw_ip6.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 494cf3525878..42144e5564a2 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1947,7 +1947,7 @@ icmp6_rip6_input(struct mbuf **mp, int off)
INP_RUNLOCK(in6p);
continue;
}
- if (last) {
+ if (last != NULL) {
struct mbuf *n = NULL;
/*
@@ -2008,7 +2008,7 @@ icmp6_rip6_input(struct mbuf **mp, int off)
last = in6p;
}
INP_INFO_RUNLOCK(&V_ripcbinfo);
- if (last) {
+ if (last != NULL) {
if (last->inp_flags & IN6P_CONTROLOPTS)
ip6_savecontrol(last, m, &opts);
/* strip intermediate headers */
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index fae9816ad30b..71d50d0f3683 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1642,7 +1642,7 @@ nd6_cache_lladdr(struct ifnet *ifp, struct in6_addr *from, char *lladdr,
return (ln);
done:
- if (ln) {
+ if (ln != NULL) {
if (flags & ND6_EXCLUSIVE)
LLE_WUNLOCK(ln);
else
@@ -1716,7 +1716,7 @@ nd6_output_lle(struct ifnet *ifp, struct ifnet *origifp, struct mbuf *m0,
int flags = 0;
#ifdef INVARIANTS
- if (lle) {
+ if (lle != NULL) {
LLE_WLOCK_ASSERT(lle);
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index aec1b8ee8b66..87e1e5ab0d8a 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -193,7 +193,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto)
continue;
}
}
- if (last) {
+ if (last != NULL) {
struct mbuf *n = m_copy(m, 0, (int)M_COPYALL);
#ifdef IPSEC
@@ -240,7 +240,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto)
INP_RUNLOCK(last);
} else
#endif /* IPSEC */
- if (last) {
+ if (last != NULL) {
if (last->inp_flags & IN6P_CONTROLOPTS ||
last->inp_socket->so_options & SO_TIMESTAMP)
ip6_savecontrol(last, m, &opts);