Skip to contentSkip to conversation

staging: r8188eu: remove sizeof_priv parameter of rtw_alloc_etherdev_with_old_priv function

PATCH New Ivan Safonov 1 participant 1 message Sep 3, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 22/63 staging: r8188eu: remove sizeof_priv parameter of rtw_alloc_etherdev_with_old_priv function

sizeof_priv does not used.

---
 drivers/staging/rtl8188eu/include/osdep_service.h | 3 +--
 drivers/staging/rtl8188eu/os_dep/os_intfs.c       | 2 +-
 drivers/staging/rtl8188eu/os_dep/osdep_service.c  | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/staging/rtl8188eu/include/osdep_service.h +1 -2
index 00c4355..2df2b65 100644
@@ -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)
drivers/staging/rtl8188eu/os_dep/os_intfs.c +1 -1
index 6f9bf7c..3b606ee 100644
@@ -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;
drivers/staging/rtl8188eu/os_dep/osdep_service.c +1 -2
index 4869cc7..7cd2655 100644
@@ -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;
Signature · 1 line
2.7.3