Staging: i4l: Remove unused variable
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 18 Sep 2016 19:01:12 +0000 (00:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:46:32 +0000 (13:46 +0200)
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>
drivers/staging/i4l/act2000/act2000_isa.c

index 808bb3b4cc80829ff9f5050e96ae6a0f0647b847..ad7a0391369fcdd68bf89520e67bd4486ac93f56 100644 (file)
@@ -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;