aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorSandhya Bankar <bankarsandhya512@gmail.com>2016-09-18 15:01:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 07:46:32 -0400
commit1e5a82e0ddfa6c9a2cf42ea87db3e079a4a483e6 (patch)
tree7f9c92a9c0e50a38a496b41a958a732f63743026 /drivers/staging
parent4b4a3e05c426b02b9728a0ab2bbfd20ad3294a71 (diff)
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; ...+> ) Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/i4l/act2000/act2000_isa.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/i4l/act2000/act2000_isa.c b/drivers/staging/i4l/act2000/act2000_isa.c
index 808bb3b4cc80..ad7a0391369f 100644
--- a/drivers/staging/i4l/act2000/act2000_isa.c
+++ b/drivers/staging/i4l/act2000/act2000_isa.c
@@ -399,7 +399,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
399 unsigned int length; 399 unsigned int length;
400 int l; 400 int l;
401 int c; 401 int c;
402 long timeout;
403 u_char *b; 402 u_char *b;
404 u_char __user *p; 403 u_char __user *p;
405 u_char *buf; 404 u_char *buf;
@@ -417,7 +416,6 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
417 buf = kmalloc(1024, GFP_KERNEL); 416 buf = kmalloc(1024, GFP_KERNEL);
418 if (!buf) 417 if (!buf)
419 return -ENOMEM; 418 return -ENOMEM;
420 timeout = 0;
421 while (length) { 419 while (length) {
422 l = (length > 1024) ? 1024 : length; 420 l = (length > 1024) ? 1024 : length;
423 c = 0; 421 c = 0;