]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: Removed unused variables
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Sun, 28 Feb 2016 11:51:06 +0000 (17:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:41:45 +0000 (19:41 -0800)
commit763861bf99258a2e26d716799ff98cb2b5942c64
treed4502304fc2d9c2b3906fe31e270d4b780da5f09
parent7e4545e34c9ca4209116e5bb51fd2f0e7dc36319
staging: wilc1000: Removed unused variables

Variables pcgroup_encrypt_val,pccipher_group,pcwpa_version,
hold different values at different stages of the execution of
connect(), however they are not being used anywhere.
Hence, the unused variables have been removed.

This was done using Coccinelle.

@@ type T; identifier i; constant c; @@
-T i;
<... when != i
-i = c;
...>

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c