diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-03-09 15:42:47 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-03-09 15:42:47 +0000 |
commit | 01f14dbd3f9e1a1383bdb72aa3b433fb755ea6a1 (patch) | |
tree | 5a28fb449a34a0a80f89cb77b279e264769d445e /sys/netinet | |
parent | 3304bedba6930de0211db21f42642d5a0f4108b5 (diff) | |
download | FreeBSD-src-01f14dbd3f9e1a1383bdb72aa3b433fb755ea6a1.zip FreeBSD-src-01f14dbd3f9e1a1383bdb72aa3b433fb755ea6a1.tar.gz |
Fix a warning reported by bz@
MFC after: 3 days.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_peeloff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/sctp_peeloff.c b/sys/netinet/sctp_peeloff.c index 6debd8f..425e3e9 100644 --- a/sys/netinet/sctp_peeloff.c +++ b/sys/netinet/sctp_peeloff.c @@ -56,17 +56,17 @@ sctp_can_peel_off(struct socket *head, sctp_assoc_t assoc_id) uint32_t state; if (head == NULL) { - SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EBADF); + SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EBADF); return (EBADF); } if ((head->so_proto->pr_protocol != IPPROTO_SCTP) || (head->so_type != SOCK_SEQPACKET)) { - SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EOPNOTSUPP); + SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EOPNOTSUPP); return (EOPNOTSUPP); } inp = (struct sctp_inpcb *)head->so_pcb; if (inp == NULL) { - SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EFAULT); + SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EFAULT); return (EFAULT); } stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); |