All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] sctp:  kill unused variable in __sctp_rcv_init_lookup()
@ 2010-05-26  9:51 Shan Wei
  0 siblings, 0 replies; only message in thread
From: Shan Wei @ 2010-05-26  9:51 UTC (permalink / raw)
  To: linux-sctp


Remove "ch" variable as it never be used.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
 net/sctp/input.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/sctp/input.c b/net/sctp/input.c
index dc421d5..9b1dde5 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -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.
-- 
1.7.0






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-26  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26  9:51 [PATCH 1/4] sctp: kill unused variable in __sctp_rcv_init_lookup() Shan Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.