Commit 529d87b4 authored by Himanshu Jha's avatar Himanshu Jha Committed by Greg Kroah-Hartman

staging: rtl8723bs: core: 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 2ad05de9
...@@ -432,7 +432,7 @@ int rtw_cmd_thread(void *context) ...@@ -432,7 +432,7 @@ int rtw_cmd_thread(void *context)
unsigned long cmd_process_time; unsigned long cmd_process_time;
u8 (*cmd_hdl)(struct adapter *padapter, u8 *pbuf); u8 (*cmd_hdl)(struct adapter *padapter, u8 *pbuf);
void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd); void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd);
struct adapter *padapter = (struct adapter *)context; struct adapter *padapter = context;
struct cmd_priv *pcmdpriv = &(padapter->cmdpriv); struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
struct drvextra_cmd_parm *extra_parm = NULL; struct drvextra_cmd_parm *extra_parm = NULL;
......
...@@ -1228,7 +1228,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame) ...@@ -1228,7 +1228,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
} }
pstat = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); pstat = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
if (pstat == (struct sta_info *)NULL) { if (pstat == NULL) {
status = _RSON_CLS2_; status = _RSON_CLS2_;
goto asoc_class2_error; goto asoc_class2_error;
} }
......
...@@ -829,7 +829,7 @@ static void pwr_rpwm_timeout_handler(void *FunctionContext) ...@@ -829,7 +829,7 @@ static void pwr_rpwm_timeout_handler(void *FunctionContext)
struct pwrctrl_priv *pwrpriv; struct pwrctrl_priv *pwrpriv;
padapter = (struct adapter *)FunctionContext; padapter = FunctionContext;
pwrpriv = adapter_to_pwrctl(padapter); pwrpriv = adapter_to_pwrctl(padapter);
DBG_871X("+%s: rpwm = 0x%02X cpwm = 0x%02X\n", __func__, pwrpriv->rpwm, pwrpriv->cpwm); DBG_871X("+%s: rpwm = 0x%02X cpwm = 0x%02X\n", __func__, pwrpriv->rpwm, pwrpriv->cpwm);
......
...@@ -2360,7 +2360,7 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe ...@@ -2360,7 +2360,7 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
void rtw_reordering_ctrl_timeout_handler(void *pcontext) void rtw_reordering_ctrl_timeout_handler(void *pcontext)
{ {
struct recv_reorder_ctrl *preorder_ctrl = (struct recv_reorder_ctrl *)pcontext; struct recv_reorder_ctrl *preorder_ctrl = pcontext;
struct adapter *padapter = preorder_ctrl->padapter; struct adapter *padapter = preorder_ctrl->padapter;
struct __queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue; struct __queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue;
......
...@@ -3002,7 +3002,7 @@ int rtw_xmit_thread(void *context) ...@@ -3002,7 +3002,7 @@ int rtw_xmit_thread(void *context)
err = _SUCCESS; err = _SUCCESS;
padapter = (struct adapter *)context; padapter = context;
thread_enter("RTW_XMIT_THREAD"); thread_enter("RTW_XMIT_THREAD");
......
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