Skip to contentSkip to conversation

Staging: i4l: Remove unused variable

PATCH In review Sandhya Bankar 2 participants 2 messages Sep 18, 2016 – Sep 19, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: i4l: Remove unused variable

Remove unused variable.

This change is made by below coccinelle script:
@@
type T;
identifier i;
constant C;
@@
(
extern T i;
|
- T i;
<+... when != i
- i = C;
...+>
)

---
 drivers/staging/i4l/act2000/act2000_isa.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/i4l/act2000/act2000_isa.c +0 -2
index 808bb3b..ad7a039 100644
@@ -399,7 +399,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
 	unsigned int length;
 	int l;
 	int c;
-	long timeout;
 	u_char *b;
 	u_char __user *p;
 	u_char *buf;
@@ -417,7 +416,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
 	buf = kmalloc(1024, GFP_KERNEL);
 	if (!buf)
 		return -ENOMEM;
-	timeout = 0;
 	while (length) {
 		l = (length > 1024) ? 1024 : length;
 		c = 0;
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Sandhya Bankar

Remove unused variable.

This change is made by below coccinelle script:
@@
type T;
identifier i;
constant C;
@@
(
extern T i;
|
- T i;
<+... when != i
- i = C;
...+>
)

Quoted 1 line
Quoted 34 lines
---
 drivers/staging/i4l/act2000/act2000_isa.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/i4l/act2000/act2000_isa.c +0 -3
index 808bb3b..ad7a039 100644
@@ -399,7 +399,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
 	unsigned int length;
 	int l;
 	int c;
-	long timeout;
 	u_char *b;
 	u_char __user *p;
 	u_char *buf;
@@ -417,7 +416,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
 	buf = kmalloc(1024, GFP_KERNEL);
 	if (!buf)
 		return -ENOMEM;
-	timeout = 0;
 	while (length) {
 		l = (length > 1024) ? 1024 : length;
 		c = 0;
--

1.7.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160918190112.GA4845%40sandhya.
For more options, visit https://groups.google.com/d/optout.