Skip to content

Commit c5f9852

Browse files
YueHaibingKalle Valo
authored andcommitted
rtlwifi: rtl8723ae: remove unused variables
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c:16:18: warning: ofdmswing_table defined but not used [-Wunused-const-variable=] drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c:56:17: warning: cckswing_table_ch1ch13 defined but not used [-Wunused-const-variable=] drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c:92:17: warning: cckswing_table_ch14 defined but not used [-Wunused-const-variable=] These variable is never used, so remove them. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 253e5ab commit c5f9852

File tree

1 file changed

+0
-112
lines changed
  • drivers/net/wireless/realtek/rtlwifi/rtl8723ae

1 file changed

+0
-112
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -13,118 +13,6 @@
1313
#include "fw.h"
1414
#include "hal_btc.h"
1515

16-
static const u32 ofdmswing_table[OFDM_TABLE_SIZE] = {
17-
0x7f8001fe,
18-
0x788001e2,
19-
0x71c001c7,
20-
0x6b8001ae,
21-
0x65400195,
22-
0x5fc0017f,
23-
0x5a400169,
24-
0x55400155,
25-
0x50800142,
26-
0x4c000130,
27-
0x47c0011f,
28-
0x43c0010f,
29-
0x40000100,
30-
0x3c8000f2,
31-
0x390000e4,
32-
0x35c000d7,
33-
0x32c000cb,
34-
0x300000c0,
35-
0x2d4000b5,
36-
0x2ac000ab,
37-
0x288000a2,
38-
0x26000098,
39-
0x24000090,
40-
0x22000088,
41-
0x20000080,
42-
0x1e400079,
43-
0x1c800072,
44-
0x1b00006c,
45-
0x19800066,
46-
0x18000060,
47-
0x16c0005b,
48-
0x15800056,
49-
0x14400051,
50-
0x1300004c,
51-
0x12000048,
52-
0x11000044,
53-
0x10000040,
54-
};
55-
56-
static const u8 cckswing_table_ch1ch13[CCK_TABLE_SIZE][8] = {
57-
{0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04},
58-
{0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04},
59-
{0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03},
60-
{0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03},
61-
{0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03},
62-
{0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03},
63-
{0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03},
64-
{0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03},
65-
{0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02},
66-
{0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02},
67-
{0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02},
68-
{0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02},
69-
{0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02},
70-
{0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02},
71-
{0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02},
72-
{0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02},
73-
{0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01},
74-
{0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02},
75-
{0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01},
76-
{0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01},
77-
{0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01},
78-
{0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01},
79-
{0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01},
80-
{0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01},
81-
{0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01},
82-
{0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01},
83-
{0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01},
84-
{0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01},
85-
{0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01},
86-
{0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01},
87-
{0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01},
88-
{0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01},
89-
{0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01}
90-
};
91-
92-
static const u8 cckswing_table_ch14[CCK_TABLE_SIZE][8] = {
93-
{0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00},
94-
{0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00},
95-
{0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00},
96-
{0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00},
97-
{0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00},
98-
{0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00},
99-
{0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00},
100-
{0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00},
101-
{0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00},
102-
{0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00},
103-
{0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00},
104-
{0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00},
105-
{0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00},
106-
{0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00},
107-
{0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00},
108-
{0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00},
109-
{0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00},
110-
{0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00},
111-
{0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00},
112-
{0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00},
113-
{0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00},
114-
{0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00},
115-
{0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00},
116-
{0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00},
117-
{0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00},
118-
{0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00},
119-
{0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00},
120-
{0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00},
121-
{0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00},
122-
{0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00},
123-
{0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00},
124-
{0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00},
125-
{0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00}
126-
};
127-
12816
static u8 rtl8723e_dm_initial_gain_min_pwdb(struct ieee80211_hw *hw)
12917
{
13018
struct rtl_priv *rtlpriv = rtl_priv(hw);

0 commit comments

Comments
 (0)