staging: r8188eu: remove unused struct hostapd_priv
authorMartin Kaiser <martin@kaiser.cx>
Sun, 6 Feb 2022 16:18:09 +0000 (17:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 09:29:03 +0000 (10:29 +0100)
struct hostapd_priv contains only a pointer to struct adapter.

Remove this struct and the unused phostapdpriv pointer in struct adapter.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220206161809.423031-15-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/include/rtw_mlme.h

index b02940accc4e384b58fa7e980269abfee6ec0bc7..987dae613d8b4113ad04efc8235dceb26ae90b22 100644 (file)
@@ -174,7 +174,6 @@ struct adapter {
        struct  pwrctrl_priv    pwrctrlpriv;
        struct  eeprom_priv eeprompriv;
        struct  led_priv        ledpriv;
-       struct  hostapd_priv    *phostapdpriv;
        struct wifidirect_info  wdinfo;
 
        struct hal_data_8188e haldata;
index 30ee46ccdb21ef8b3a4dea27ea2d78528aef09d5..ed2a50bad66ebbc7ab1d246d50c7d5c821083d58 100644 (file)
@@ -416,10 +416,6 @@ struct mlme_priv {
        u8              update_bcn;
 };
 
-struct hostapd_priv {
-       struct adapter *padapter;
-};
-
 int hostapd_mode_init(struct adapter *padapter);
 void hostapd_mode_unload(struct adapter *padapter);