Skip to contentSkip to conversation

sctp: kill unused variable in __sctp_rcv_init_lookup()

PATCH New Shan Wei 1 participant 1 message May 26, 2010

Subsystems (2)
lore
Share & tools
lore

Shan Wei

author
#0 lore raw

PATCH 1/4 sctp: kill unused variable in __sctp_rcv_init_lookup()

Remove "ch" variable as it never be used.

---
 net/sctp/input.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
net/sctp/input.c +0 -3
index dc421d5..9b1dde5 100644
@@ -942,14 +942,11 @@ static struct sctp_association *__sctp_rcv_init_lookup(struct sk_buff *skb,
 	union sctp_addr addr;
 	union sctp_addr *paddr = &addr;
 	struct sctphdr *sh = sctp_hdr(skb);
-	sctp_chunkhdr_t *ch;
 	union sctp_params params;
 	sctp_init_chunk_t *init;
 	struct sctp_transport *transport;
 	struct sctp_af *af;
 
-	ch = (sctp_chunkhdr_t *) skb->data;
-
 	/*
 	 * This code will NOT touch anything inside the chunk--it is
 	 * strictly READ-ONLY.
Signature · 1 line
1.7.0