diff options
author | Ivan Safonov <insafonov@gmail.com> | 2016-03-02 15:05:47 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 29b9e16884e4431e90542c42126364f8de8dd93f (patch) | |
tree | 9e07be82d4ca508fa1a16a165d1708f2ef818f2c | |
parent | 2e48f0df5cc793bccdde66b32e6a4fd134da534d (diff) | |
download | blackbird-op-linux-29b9e16884e4431e90542c42126364f8de8dd93f.tar.gz blackbird-op-linux-29b9e16884e4431e90542c42126364f8de8dd93f.zip |
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>
-rw-r--r-- | drivers/staging/rtl8188eu/include/drv_types.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/include/drv_types.h b/drivers/staging/rtl8188eu/include/drv_types.h index ddce9f4db231..dcb032b6c3a7 100644 --- a/drivers/staging/rtl8188eu/include/drv_types.h +++ b/drivers/staging/rtl8188eu/include/drv_types.h @@ -176,8 +176,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj) }; struct adapter { - u16 chip_type; - struct dvobj_priv *dvobj; struct mlme_priv mlmepriv; struct mlme_ext_priv mlmeextpriv; diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 96b0175a07c0..794cc114348c 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -360,7 +360,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, padapter->bDriverStopped = true; mutex_init(&padapter->hw_init_mutex); - padapter->chip_type = RTL8188E; pnetdev = rtw_init_netdev(padapter); if (pnetdev == NULL) |