mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Staging: rtl8723bs: Remove unnecessary local variable in function
Remove unnecessary local variable 'res' in function and replace the value directly in the return of the function. Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
403fa6deca
commit
9173449821
1 changed files with 1 additions and 3 deletions
|
|
@ -203,8 +203,6 @@ exit:
|
|||
static void c2h_wk_callback(_workitem *work);
|
||||
int rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
int res = _SUCCESS;
|
||||
|
||||
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
|
||||
atomic_set(&pevtpriv->event_seq, 0);
|
||||
pevtpriv->evt_done_cnt = 0;
|
||||
|
|
@ -213,7 +211,7 @@ int rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
|||
pevtpriv->c2h_wk_alive = false;
|
||||
pevtpriv->c2h_queue = rtw_cbuf_alloc(C2H_QUEUE_MAX_LEN+1);
|
||||
|
||||
return res;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void _rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
||||
|
|
|
|||
Loading…
Reference in a new issue