staging: r8188eu: remove rereg_nd_name_priv member of struct adapter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:29:56 +0000 (22:29 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
Only default value of rereg_nd_name_priv was used.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index 0279eaf6cdc610dbd2817581387cd8b9cc91f563..246d0fc26323612f26dedaaae73b6a45e67b9e03 100644 (file)
@@ -205,14 +205,6 @@ struct adapter {
        struct  net_device *pnetdev;
        struct  net_device *pmondev;
 
-       /*  used by rtw_rereg_nd_name related function */
-       struct rereg_nd_name_data {
-               struct  net_device *old_pnetdev;
-               char old_ifname[IFNAMSIZ];
-               u8 old_ips_mode;
-               u8 old_bRegUseLed;
-       } rereg_nd_name_priv;
-
        int bup;
        struct net_device_stats stats;
        struct iw_statistics iwstats;
index 20eca02122ce32954aa00f06413a90efc44c30e1..73cbfd3b873f775c91824ddb96d1156d733f91d1 100644 (file)
@@ -958,12 +958,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
 
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("<== rtw_free_drv_sw\n"));
 
-       /* free the old_pnetdev */
-       if (padapter->rereg_nd_name_priv.old_pnetdev) {
-               free_netdev(padapter->rereg_nd_name_priv.old_pnetdev);
-               padapter->rereg_nd_name_priv.old_pnetdev = NULL;
-       }
-
        mutex_destroy(&padapter->hw_init_mutex);
 
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-rtw_free_drv_sw\n"));