staging: r8188eu: remove sizeof_priv member of rtw_netdev_priv_indicator
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:31:06 +0000 (22:31 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:22 +0000 (11:23 +0200)
sizeof_priv does not used.

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

index 6f6a8f8c3b234231c65710a73e53c98ba8769819..00c43554c70b6ebe3199c737fead38edd5915fa6 100644 (file)
@@ -82,7 +82,6 @@ void _rtw_init_queue(struct __queue *pqueue);
 
 struct rtw_netdev_priv_indicator {
        void *priv;
-       u32 sizeof_priv;
 };
 struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
                                                    void *old_priv);
index 24d177489c8f4e4bf2c25ab5ad4e5f718bd79458..4869cc7340791df83b501bd910a4ab001162c225 100644 (file)
@@ -73,7 +73,6 @@ struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
 
        pnpi = netdev_priv(pnetdev);
        pnpi->priv = old_priv;
-       pnpi->sizeof_priv = sizeof_priv;
 
 RETURN:
        return pnetdev;