staging: r8188: Bssid in struct fast_ant_train is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 18 Dec 2021 12:04:20 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Dec 2021 16:51:15 +0000 (17:51 +0100)
Bssid in struct fast_ant_train is set but not used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211218120423.29906-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm_RTL8188E.c
drivers/staging/r8188eu/include/odm.h

index e55bb91..8af45c7 100644 (file)
@@ -56,12 +56,9 @@ static void odm_TRX_HWAntDivInit(struct odm_dm_struct *dm_odm)
 
 static void odm_FastAntTrainingInit(struct odm_dm_struct *dm_odm)
 {
-       u32     value32, i;
+       u32     value32;
        struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable;
 
-       for (i = 0; i < 6; i++)
-               dm_fat_tbl->Bssid[i] = 0;
-
        dm_fat_tbl->TrainIdx = 0;
        dm_fat_tbl->FAT_State = FAT_NORMAL_STATE;
 
index 3d12b03..b282945 100644 (file)
@@ -408,7 +408,6 @@ struct odm_rf_cal {
 /*  ODM Dynamic common info value definition */
 
 struct fast_ant_train {
-       u8      Bssid[6];
        u8      antsel_rx_keep_0;
        u8      antsel_rx_keep_1;
        u8      antsel_rx_keep_2;