Skip to content

Commit

Permalink
staging: r8188eu: Remove set but unused variables
Browse files Browse the repository at this point in the history
Remove set but unused variables. Issues detected by sparse.

Signed-off-by: Fabio M. De Francesco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
xp4ns3 authored and gregkh committed Aug 5, 2021
1 parent d37b3b5 commit fd03e7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/r8188eu/core/rtw_mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,6 @@ void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf)
void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
{
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
struct mlme_ext_priv *pmlmeext;
u8 timer_cancelled = 0;

spin_lock_bh(&pmlmepriv->lock);
Expand Down Expand Up @@ -843,9 +842,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
p2p_ps_wk_cmd(adapter, P2P_PS_SCAN_DONE, 0);

rtw_os_xmit_schedule(adapter);

pmlmeext = &adapter->mlmeextpriv;

}

void rtw_dummy_event_callback(struct adapter *adapter, u8 *pbuf)
Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/r8188eu/os_dep/osdep_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void rtw_buf_free(u8 **buf, u32 *buf_len)

void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len)
{
u32 ori_len = 0, dup_len = 0;
u32 dup_len = 0;
u8 *ori = NULL;
u8 *dup = NULL;

Expand All @@ -416,7 +416,6 @@ void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len)

keep_ori:
ori = *buf;
ori_len = *buf_len;

/* replace buf with dup */
*buf_len = 0;
Expand Down

0 comments on commit fd03e7f

Please sign in to comment.