]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45f39ecf95944e540c721651691e29e0212373e7
tree794217c99cc662a51f0fdec96f282495a372adb2
parentb119e96dfc72c7f556bbae3a29ba1ee4a9be1d68
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