All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: i4l: act2000: capi: Removing necessary  variable
@ 2016-11-11  9:58 Nadim Almas
  2016-11-11 11:17 ` kbuild test robot
  2016-11-14 14:50 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Nadim Almas @ 2016-11-11  9:58 UTC (permalink / raw)
  To: gregkh, bankarsandhya512; +Cc: linux-kernel

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-14 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11  9:58 [PATCH] Staging: i4l: act2000: capi: Removing necessary variable Nadim Almas
2016-11-11 11:17 ` kbuild test robot
2016-11-14 14:50 ` Greg KH

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.