staging: r8188eu: remove sizeof_priv parameter of rtw_alloc_etherdev_with_old_priv...
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:31:10 +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/os_intfs.c
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 00c43554c70b6ebe3199c737fead38edd5915fa6..2df2b657767ef138f577e47311248647b34aeeba 100644 (file)
@@ -83,8 +83,7 @@ void _rtw_init_queue(struct __queue *pqueue);
 struct rtw_netdev_priv_indicator {
        void *priv;
 };
-struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
-                                                   void *old_priv);
+struct net_device *rtw_alloc_etherdev_with_old_priv(void *old_priv);
 
 #define rtw_netdev_priv(netdev)                                        \
        (((struct rtw_netdev_priv_indicator *)netdev_priv(netdev))->priv)
index 6f9bf7c9747933cebb0afe4ace2128cea0b7b3c7..3b606ee51d39214a57c2183eed8dfa2afbeaa948 100644 (file)
@@ -674,7 +674,7 @@ struct net_device *rtw_init_netdev(struct adapter *old_padapter)
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("+init_net_dev\n"));
 
        if (old_padapter != NULL)
-               pnetdev = rtw_alloc_etherdev_with_old_priv(sizeof(struct adapter), (void *)old_padapter);
+               pnetdev = rtw_alloc_etherdev_with_old_priv((void *)old_padapter);
 
        if (!pnetdev)
                return NULL;
index 4869cc7340791df83b501bd910a4ab001162c225..7cd2655f27fe1952e28e92c28f90e0f96ecfce72 100644 (file)
@@ -61,8 +61,7 @@ void  _rtw_init_queue(struct __queue *pqueue)
        spin_lock_init(&(pqueue->lock));
 }
 
-struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
-                                                   void *old_priv)
+struct net_device *rtw_alloc_etherdev_with_old_priv(void *old_priv)
 {
        struct net_device *pnetdev;
        struct rtw_netdev_priv_indicator *pnpi;