diff options
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index c7f7e49609cb..f2d1de7f2ffb 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -105,11 +105,8 @@ int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | |||
105 | gfp_t gfp) | 105 | gfp_t gfp) |
106 | { | 106 | { |
107 | struct sk_buff_head temp; | 107 | struct sk_buff_head temp; |
108 | sctp_data_chunk_t *hdr; | ||
109 | struct sctp_ulpevent *event; | 108 | struct sctp_ulpevent *event; |
110 | 109 | ||
111 | hdr = (sctp_data_chunk_t *) chunk->chunk_hdr; | ||
112 | |||
113 | /* Create an event from the incoming chunk. */ | 110 | /* Create an event from the incoming chunk. */ |
114 | event = sctp_ulpevent_make_rcvmsg(chunk->asoc, chunk, gfp); | 111 | event = sctp_ulpevent_make_rcvmsg(chunk->asoc, chunk, gfp); |
115 | if (!event) | 112 | if (!event) |
@@ -243,7 +240,7 @@ int sctp_ulpq_tail_event(struct sctp_ulpq *ulpq, struct sctp_ulpevent *event) | |||
243 | } else { | 240 | } else { |
244 | /* | 241 | /* |
245 | * If fragment interleave is enabled, we | 242 | * If fragment interleave is enabled, we |
246 | * can queue this to the recieve queue instead | 243 | * can queue this to the receive queue instead |
247 | * of the lobby. | 244 | * of the lobby. |
248 | */ | 245 | */ |
249 | if (sctp_sk(sk)->frag_interleave) | 246 | if (sctp_sk(sk)->frag_interleave) |
@@ -743,11 +740,9 @@ static void sctp_ulpq_retrieve_ordered(struct sctp_ulpq *ulpq, | |||
743 | struct sk_buff *pos, *tmp; | 740 | struct sk_buff *pos, *tmp; |
744 | struct sctp_ulpevent *cevent; | 741 | struct sctp_ulpevent *cevent; |
745 | struct sctp_stream *in; | 742 | struct sctp_stream *in; |
746 | __u16 sid, csid; | 743 | __u16 sid, csid, cssn; |
747 | __u16 ssn, cssn; | ||
748 | 744 | ||
749 | sid = event->stream; | 745 | sid = event->stream; |
750 | ssn = event->ssn; | ||
751 | in = &ulpq->asoc->ssnmap->in; | 746 | in = &ulpq->asoc->ssnmap->in; |
752 | 747 | ||
753 | event_list = (struct sk_buff_head *) sctp_event2skb(event)->prev; | 748 | event_list = (struct sk_buff_head *) sctp_event2skb(event)->prev; |