提交 64e6619f 编写于 作者: B Bhumika Goyal 提交者: Greg Kroah-Hartman

Staging: rtl8188eu: core: rtw_mlme.c: Remove NULL test before vfree

The function vfree tests whether the argument is NULL and returns
immediately. So NULL test before vfree is not needed. Also remove braces
around if branch as they are no longer needed.
Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bfb7ff2c
...@@ -122,10 +122,8 @@ void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv) ...@@ -122,10 +122,8 @@ void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
{ {
rtw_free_mlme_priv_ie_data(pmlmepriv); rtw_free_mlme_priv_ie_data(pmlmepriv);
if (pmlmepriv) { if (pmlmepriv)
if (pmlmepriv->free_bss_buf) vfree(pmlmepriv->free_bss_buf);
vfree(pmlmepriv->free_bss_buf);
}
} }
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv) struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册