Commit 67e3e07e authored by Himanshu Jha's avatar Himanshu Jha Committed by Greg Kroah-Hartman

staging: rtl8723bs: os_dep: remove cast to void pointer

casting to void pointer from any pointer type and vice-versa is done
implicitly and therefore casting is not needed in such a case.
Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 529d87b4
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
static void _dynamic_check_timer_handlder (void *FunctionContext) static void _dynamic_check_timer_handlder (void *FunctionContext)
{ {
struct adapter *adapter = (struct adapter *)FunctionContext; struct adapter *adapter = FunctionContext;
rtw_dynamic_check_timer_handlder(adapter); rtw_dynamic_check_timer_handlder(adapter);
...@@ -30,7 +30,7 @@ static void _dynamic_check_timer_handlder (void *FunctionContext) ...@@ -30,7 +30,7 @@ static void _dynamic_check_timer_handlder (void *FunctionContext)
static void _rtw_set_scan_deny_timer_hdl(void *FunctionContext) static void _rtw_set_scan_deny_timer_hdl(void *FunctionContext)
{ {
struct adapter *adapter = (struct adapter *)FunctionContext; struct adapter *adapter = FunctionContext;
rtw_set_scan_deny_timer_hdl(adapter); rtw_set_scan_deny_timer_hdl(adapter);
} }
......
...@@ -73,7 +73,7 @@ inline int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb) ...@@ -73,7 +73,7 @@ inline int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb)
void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc) void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc)
{ {
struct adapter *adapter = (struct adapter *)padapter; struct adapter *adapter = padapter;
_init_timer(ptimer, adapter->pnetdev, pfunc, adapter); _init_timer(ptimer, adapter->pnetdev, pfunc, adapter);
} }
......
...@@ -138,7 +138,7 @@ static void sdio_free_irq(struct dvobj_priv *dvobj) ...@@ -138,7 +138,7 @@ static void sdio_free_irq(struct dvobj_priv *dvobj)
extern unsigned int oob_irq; extern unsigned int oob_irq;
static irqreturn_t gpio_hostwakeup_irq_thread(int irq, void *data) static irqreturn_t gpio_hostwakeup_irq_thread(int irq, void *data)
{ {
struct adapter *padapter = (struct adapter *)data; struct adapter *padapter = data;
DBG_871X_LEVEL(_drv_always_, "gpio_hostwakeup_irq_thread\n"); DBG_871X_LEVEL(_drv_always_, "gpio_hostwakeup_irq_thread\n");
/* Disable interrupt before calling handler */ /* Disable interrupt before calling handler */
/* disable_irq_nosync(oob_irq); */ /* disable_irq_nosync(oob_irq); */
......
...@@ -431,7 +431,7 @@ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) ...@@ -431,7 +431,7 @@ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
if (unlikely((cnt == 1) || (cnt == 2))) if (unlikely((cnt == 1) || (cnt == 2)))
{ {
int i; int i;
u8 *pbuf = (u8 *)pdata; u8 *pbuf = pdata;
for (i = 0; i < cnt; i++) for (i = 0; i < cnt; i++)
{ {
...@@ -534,7 +534,7 @@ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) ...@@ -534,7 +534,7 @@ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
if (unlikely((cnt == 1) || (cnt == 2))) if (unlikely((cnt == 1) || (cnt == 2)))
{ {
int i; int i;
u8 *pbuf = (u8 *)pdata; u8 *pbuf = pdata;
for (i = 0; i < cnt; i++) for (i = 0; i < cnt; i++)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment