aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_usrreq.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 15:46:41 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 15:46:41 +0000
commit99d628d577710a8236fd8cfca76bad9eb43b22c8 (patch)
tree4a79a438a4050cb2587d8b164209b03fac85a9d6 /sys/netinet/sctp_usrreq.c
parent915c6043b06c1ef2afd4660e18a18d0ed434333d (diff)
downloadsrc-99d628d577710a8236fd8cfca76bad9eb43b22c8.tar.gz
src-99d628d577710a8236fd8cfca76bad9eb43b22c8.zip
netinet: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: ae. tuexen
Notes
Notes: svn path=/head/; revision=298066
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r--sys/netinet/sctp_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 1b23abca7f10..81d2478294d4 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -469,7 +469,7 @@ sctp_attach(struct socket *so, int proto SCTP_UNUSED, struct thread *p SCTP_UNUS
uint32_t vrf_id = SCTP_DEFAULT_VRFID;
inp = (struct sctp_inpcb *)so->so_pcb;
- if (inp != 0) {
+ if (inp != NULL) {
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL);
return (EINVAL);
}