Staging: rtlwifi: Remove unused variable and the code
authorShreeya Patel <shreeya.patel23498@gmail.com>
Thu, 21 Dec 2017 22:28:21 +0000 (03:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:45:45 +0000 (16:45 +0100)
commit97c6166001efe54f74d25e5e46b5bdc54bb01391
tree794217c99cc662a51f0fdec96f282495a372adb2
parentab3080532e10ce51b171419b6f59182bbef7beb2
Staging: rtlwifi: Remove unused variable and the code

Remove unused variable and also remove unused code
associated with initializing the unused variable.

Unused variable was detected using the following
semantic patch by coccinelle.

@@
type T;
identifier i;
constant C;
@@

(
extern T i;
|
- T i;
  <+... when != i
- i = C;
  ...+>
)

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c