]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: remove chip_type of the adapter structure
authorIvan Safonov <insafonov@gmail.com>
Wed, 2 Mar 2016 08:05:47 +0000 (15:05 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
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>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index ddce9f4db23100d89d6ddeecab33d9bb327c3170..dcb032b6c3a7162514936703a8bc9df927d99271 100644 (file)
@@ -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;
index 96b0175a07c09c00e9fd6e6e04dd400eee1f99df..794cc114348ce441f5c2368b6f5d7ebf06531efd 100644 (file)
@@ -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)