Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756199AbcKKJ6d (ORCPT ); Fri, 11 Nov 2016 04:58:33 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33431 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755540AbcKKJ6a (ORCPT ); Fri, 11 Nov 2016 04:58:30 -0500 Date: Fri, 11 Nov 2016 15:28:21 +0530 From: Nadim Almas To: gregkh@linuxfoundation.org, bankarsandhya512@gmail.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] Staging: i4l: act2000: capi: Removing necessary variable Message-ID: <20161111095821.GA4754@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3070 Lines: 125 Removing struct sk_buff *skb from capi.c The Coccinelle semantic patch used to make this change is as follows: @@ type T; identifier D; @@ - T D; ...when != D Signed-off-by: Nadim Almas --- drivers/staging/i4l/act2000/capi.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index 61386a7..2c2c77e 100644 --- a/drivers/staging/i4l/act2000/capi.c +++ b/drivers/staging/i4l/act2000/capi.c @@ -183,7 +183,6 @@ static void actcapi_connect_b3_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(17, 0x82, 0x00); ACTCAPI_CHKSKB; @@ -304,7 +303,6 @@ void actcapi_select_b2_protocol_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(10, 0x40, 0x00); ACTCAPI_CHKSKB; @@ -339,7 +337,6 @@ static void actcapi_select_b3_protocol_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(17, 0x80, 0x00); ACTCAPI_CHKSKB; @@ -360,7 +357,6 @@ static void actcapi_listen_b3_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x81, 0x00); ACTCAPI_CHKSKB; @@ -372,7 +368,6 @@ static void actcapi_disconnect_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(3, 0x04, 0x00); ACTCAPI_CHKSKB; @@ -385,7 +380,6 @@ void actcapi_disconnect_b3_req(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(17, 0x84, 0x00); ACTCAPI_CHKSKB; @@ -402,7 +396,6 @@ void actcapi_connect_resp(act2000_card *card, act2000_chan *chan, __u8 cause) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(3, 0x02, 0x03); ACTCAPI_CHKSKB; @@ -420,7 +413,6 @@ static void actcapi_connect_active_resp(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x03, 0x03); ACTCAPI_CHKSKB; @@ -434,7 +426,6 @@ static void actcapi_connect_b3_resp(act2000_card *card, act2000_chan *chan, __u8 rejectcause) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR((rejectcause ? 3 : 17), 0x82, 0x03); ACTCAPI_CHKSKB; @@ -454,7 +445,6 @@ static void actcapi_connect_b3_active_resp(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x83, 0x03); ACTCAPI_CHKSKB; @@ -467,7 +457,6 @@ static void actcapi_info_resp(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x07, 0x03); ACTCAPI_CHKSKB; @@ -479,7 +468,6 @@ static void actcapi_disconnect_b3_resp(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x84, 0x03); ACTCAPI_CHKSKB; @@ -493,7 +481,6 @@ static void actcapi_disconnect_resp(act2000_card *card, act2000_chan *chan) { actcapi_msg *m; - struct sk_buff *skb; ACTCAPI_MKHDR(2, 0x04, 0x03); ACTCAPI_CHKSKB; -- 2.7.4