Skip to content

Commit

Permalink
staging: r8188eu: core: remove null check before vfree
Browse files Browse the repository at this point in the history
Remove NULL check. NULL check before freeing function is not needed.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
  • Loading branch information
Saurav-Girepunje authored and intel-lab-lkp committed Aug 28, 2021
1 parent 4adb389 commit 9c7f84a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/r8188eu/core/rtw_sta_mgt.c
Expand Up @@ -155,9 +155,7 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
spin_unlock_bh(&pstapriv->sta_hash_lock);
/*===============================*/

if (pstapriv->pallocated_stainfo_buf)
vfree(pstapriv->pallocated_stainfo_buf);
}
vfree(pstapriv->pallocated_stainfo_buf);

return _SUCCESS;
}
Expand Down

0 comments on commit 9c7f84a

Please sign in to comment.