staging: ft1000: ft1000-pcmcia: removed unused variable in ft1000_hw.c
authorJiayi Ye <yejiayily@gmail.com>
Mon, 20 Oct 2014 11:13:56 +0000 (19:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 04:31:18 +0000 (12:31 +0800)
commit817c66c4f50d7b0abb3e33117777d8890ac70040
tree1aa45e4f399df23b1505c20ef063bdd92de1ec4b
parent93164c03ae7144bc4d9593a962a9169e9675dc3f
staging: ft1000: ft1000-pcmcia: removed unused variable in ft1000_hw.c

Variable whose value is initialized but never used is unnecessary. The following Coccinelle semantic patch removed the unused variable.

@e@
identifier i;
position p;
type T;
@@

extern T i@p;

@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p;
  <+... when != i
- i = C;
  ...+>

Signed-off-by: Jiayi Ye <yejiayily@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c