staging: rtl8188eu: remove chip_type of the adapter structure
chip_type variable is unnecessary here, because this driver is only for one chip and it is not used after initialization. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2e48f0df5c
commit
29b9e16884
|
@ -176,8 +176,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
|
||||||
};
|
};
|
||||||
|
|
||||||
struct adapter {
|
struct adapter {
|
||||||
u16 chip_type;
|
|
||||||
|
|
||||||
struct dvobj_priv *dvobj;
|
struct dvobj_priv *dvobj;
|
||||||
struct mlme_priv mlmepriv;
|
struct mlme_priv mlmepriv;
|
||||||
struct mlme_ext_priv mlmeextpriv;
|
struct mlme_ext_priv mlmeextpriv;
|
||||||
|
|
|
@ -360,7 +360,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
||||||
|
|
||||||
padapter->bDriverStopped = true;
|
padapter->bDriverStopped = true;
|
||||||
mutex_init(&padapter->hw_init_mutex);
|
mutex_init(&padapter->hw_init_mutex);
|
||||||
padapter->chip_type = RTL8188E;
|
|
||||||
|
|
||||||
pnetdev = rtw_init_netdev(padapter);
|
pnetdev = rtw_init_netdev(padapter);
|
||||||
if (pnetdev == NULL)
|
if (pnetdev == NULL)
|
||||||
|
|
Loading…
Reference in a new issue