linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nadim Almas <nadim.902@gmail.com>
To: gregkh@linuxfoundation.org, bankarsandhya512@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Staging: i4l: act2000: capi: Removing necessary  variable
Date: Fri, 11 Nov 2016 15:28:21 +0530	[thread overview]
Message-ID: <20161111095821.GA4754@gmail.com> (raw)

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 <nadim.902@gmail.com>
---
 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

             reply	other threads:[~2016-11-11  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11  9:58 Nadim Almas [this message]
2016-11-11 11:17 ` [PATCH] Staging: i4l: act2000: capi: Removing necessary variable kbuild test robot
2016-11-14 14:50 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161111095821.GA4754@gmail.com \
    --to=nadim.902@gmail.com \
    --cc=bankarsandhya512@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).