rtlwifi: remove unused variables 'RTL8712_SDIO_EFUSE_TABLE' and 'MAX_PGPKT_SIZE'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 16 Aug 2019 14:05:13 +0000 (22:05 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:28:37 +0000 (16:28 +0300)
drivers/net/wireless/realtek/rtlwifi/efuse.c:16:31:
 warning: RTL8712_SDIO_EFUSE_TABLE defined but not used [-Wunused-const-variable=]
drivers/net/wireless/realtek/rtlwifi/efuse.c:9:17:
 warning: MAX_PGPKT_SIZE defined but not used [-Wunused-const-variable=]

They are never used, so can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/efuse.c

index ea4fc53764de3cc5b1842f5cb1d15b38e32c7eea..264667203f6f161b1abdd4269902174607f27127 100644 (file)
@@ -6,29 +6,12 @@
 #include "pci.h"
 #include <linux/export.h>
 
-static const u8 MAX_PGPKT_SIZE = 9;
 static const u8 PGPKT_DATA_SIZE = 8;
 static const int EFUSE_MAX_SIZE = 512;
 
 #define START_ADDRESS          0x1000
 #define REG_MCUFWDL            0x0080
 
-static const struct efuse_map RTL8712_SDIO_EFUSE_TABLE[] = {
-       {0, 0, 0, 2},
-       {0, 1, 0, 2},
-       {0, 2, 0, 2},
-       {1, 0, 0, 1},
-       {1, 0, 1, 1},
-       {1, 1, 0, 1},
-       {1, 1, 1, 3},
-       {1, 3, 0, 17},
-       {3, 3, 1, 48},
-       {10, 0, 0, 6},
-       {10, 3, 0, 1},
-       {10, 3, 1, 1},
-       {11, 0, 0, 28}
-};
-
 static const struct rtl_efuse_ops efuse_ops = {
        .efuse_onebyte_read = efuse_one_byte_read,
        .efuse_logical_map_read = efuse_shadow_read,