summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_usrreq.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-05-06 14:50:54 +0000
committertuexen <tuexen@FreeBSD.org>2012-05-06 14:50:54 +0000
commitdfb886ebd021277a42ddc8b23893b59ca6ade3e7 (patch)
treeaef4bf889cb0045ffa258d4fdf90ea8e43f6061d /sys/netinet/sctp_usrreq.c
parentb5cb1ff1a3eca6a245b6dcff30ebdd89c008f23a (diff)
downloadFreeBSD-src-dfb886ebd021277a42ddc8b23893b59ca6ade3e7.zip
FreeBSD-src-dfb886ebd021277a42ddc8b23893b59ca6ade3e7.tar.gz
Address clang warnings.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r--sys/netinet/sctp_usrreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index e39b1cf..93708af 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -5838,7 +5838,6 @@ sctp_ctloutput(struct socket *so, struct sockopt *sopt)
{
void *optval = NULL;
size_t optsize = 0;
- struct sctp_inpcb *inp;
void *p;
int error = 0;
@@ -5856,12 +5855,11 @@ sctp_ctloutput(struct socket *so, struct sockopt *sopt)
#endif
return (error);
}
- inp = (struct sctp_inpcb *)so->so_pcb;
optsize = sopt->sopt_valsize;
if (optsize) {
SCTP_MALLOC(optval, void *, optsize, SCTP_M_SOCKOPT);
if (optval == NULL) {
- SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, ENOBUFS);
+ SCTP_LTRACE_ERR_RET(so->so_pcb, NULL, NULL, SCTP_FROM_SCTP_USRREQ, ENOBUFS);
return (ENOBUFS);
}
error = sooptcopyin(sopt, optval, optsize, optsize);
@@ -5876,7 +5874,7 @@ sctp_ctloutput(struct socket *so, struct sockopt *sopt)
} else if (sopt->sopt_dir == SOPT_GET) {
error = sctp_getopt(so, sopt->sopt_name, optval, &optsize, p);
} else {
- SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL);
+ SCTP_LTRACE_ERR_RET(so->so_pcb, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL);
error = EINVAL;
}
if ((error == 0) && (optval != NULL)) {
OpenPOWER on IntegriCloud