summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_input.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-06-22 16:21:14 +0000
committertuexen <tuexen@FreeBSD.org>2014-06-22 16:21:14 +0000
commitc6eec1dbae3fd02be9d3f492181283ee3b5e5440 (patch)
tree286e3978f0b741042226df5cbc9b3a37b46c7831 /sys/netinet/sctp_input.c
parentabdd2eb0787af0ad290bc7094668760948f46c15 (diff)
downloadFreeBSD-src-c6eec1dbae3fd02be9d3f492181283ee3b5e5440.zip
FreeBSD-src-c6eec1dbae3fd02be9d3f492181283ee3b5e5440.tar.gz
MFC r262252:
Remove redundant code and fix a style error.
Diffstat (limited to 'sys/netinet/sctp_input.c')
-rw-r--r--sys/netinet/sctp_input.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c
index 287c3ed..6ea85f5 100644
--- a/sys/netinet/sctp_input.c
+++ b/sys/netinet/sctp_input.c
@@ -439,7 +439,6 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset,
/* First verify that we have no illegal param's */
abort_flag = 0;
- op_err = NULL;
op_err = sctp_arethere_unrecognized_parameters(m,
(offset + sizeof(struct sctp_init_chunk)),
@@ -1553,8 +1552,7 @@ sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset,
return (NULL);
}
- switch SCTP_GET_STATE
- (asoc) {
+ switch (SCTP_GET_STATE(asoc)) {
case SCTP_STATE_COOKIE_WAIT:
case SCTP_STATE_COOKIE_ECHOED:
/*
@@ -1644,7 +1642,7 @@ sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset,
* have simply lost the COOKIE-ACK
*/
break;
- } /* end switch */
+ } /* end switch */
sctp_stop_all_cookie_timers(stcb);
/*
* We ignore the return code here.. not sure if we should
OpenPOWER on IntegriCloud