summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/core
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-15 08:58:20 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 23:06:51 (GMT)
commit64e6619fd3f6c239d5f57f2c88fe9b9291a7e0f2 (patch)
tree39c69c27f3ec5bb39376c5fbd6200aae33c55b7c /drivers/staging/rtl8188eu/core
parentbfb7ff2c0bf322a1780e1cf2479ace7a5beb8ab9 (diff)
downloadlinux-64e6619fd3f6c239d5f57f2c88fe9b9291a7e0f2.tar.xz
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: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/core')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mlme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c
index 9c2e659..a645a62 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c
@@ -122,10 +122,8 @@ void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
{
rtw_free_mlme_priv_ie_data(pmlmepriv);
- if (pmlmepriv) {
- if (pmlmepriv->free_bss_buf)
- vfree(pmlmepriv->free_bss_buf);
- }
+ if (pmlmepriv)
+ vfree(pmlmepriv->free_bss_buf);
}
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)