Commit ad942cb1 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

Staging: rtl8723au: rtl8723a_bt-coexist: Remove unused variable

A variable is initialized and then assigned values in the code but is
never used and therefore, should be removed.
Semantic patch used:
@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p;
  <+... when != i
- i = C;
  ...+>
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f955a398
...@@ -5549,7 +5549,7 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry) ...@@ -5549,7 +5549,7 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry)
{ {
struct hal_data_8723a *pHalData; struct hal_data_8723a *pHalData;
struct btdm_8723a_1ant *pBtdm8723; struct btdm_8723a_1ant *pBtdm8723;
static s8 up, dn, m = 1, n = 3, WaitCount; static s8 up, dn, m = 1, WaitCount;
s8 ret; s8 ret;
pHalData = GET_HAL_DATA(padapter); pHalData = GET_HAL_DATA(padapter);
...@@ -5560,7 +5560,6 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry) ...@@ -5560,7 +5560,6 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry)
up = 0; up = 0;
dn = 0; dn = 0;
m = 1; m = 1;
n = 3;
WaitCount = 0; WaitCount = 0;
} else { } else {
WaitCount++; WaitCount++;
...@@ -5575,8 +5574,6 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry) ...@@ -5575,8 +5574,6 @@ static s8 btdm_1AntTdmaJudgement(struct rtw_adapter *padapter, u8 retry)
if (up >= 3*m) { if (up >= 3*m) {
/* retry = 0 in consecutive 3m*(2s), add WiFi duration */ /* retry = 0 in consecutive 3m*(2s), add WiFi duration */
ret = 1; ret = 1;
n = 3;
up = 0; up = 0;
dn = 0; dn = 0;
WaitCount = 0; WaitCount = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment