From: David S. Miller Date: Thu, 19 May 2011 22:52:59 +0000 (-0400) Subject: irda: Kill set but unused variable 'clen' in ircomm_connect_indication() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bfad6ef6d29e776472b3ead1f5bc920c5410ed2c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git irda: Kill set but unused variable 'clen' in ircomm_connect_indication() Signed-off-by: David S. Miller --- diff --git a/net/irda/ircomm/ircomm_core.c b/net/irda/ircomm/ircomm_core.c index e97082017f4f..52079f19bbbe 100644 --- a/net/irda/ircomm/ircomm_core.c +++ b/net/irda/ircomm/ircomm_core.c @@ -244,14 +244,8 @@ EXPORT_SYMBOL(ircomm_connect_request); void ircomm_connect_indication(struct ircomm_cb *self, struct sk_buff *skb, struct ircomm_info *info) { - int clen = 0; - IRDA_DEBUG(2, "%s()\n", __func__ ); - /* Check if the packet contains data on the control channel */ - if (skb->len > 0) - clen = skb->data[0]; - /* * If there are any data hiding in the control channel, we must * deliver it first. The side effect is that the control channel