summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-15 11:58:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-21 02:06:51 +0300
commitda04bf74b499c22e300517beaaab63670835da84 (patch)
treeef8414f71e089cb6e03475ba907c4afbf5e130c3 /drivers
parent64e6619fd3f6c239d5f57f2c88fe9b9291a7e0f2 (diff)
downloadlinux-da04bf74b499c22e300517beaaab63670835da84.tar.xz
Staging: rtl8188eu: core: rtw_xmit.c: Remove NULL test before vfree
The function vfree tests whether the argument is NULL and returns immediately. So NULL test is not needed before vfree. Also remove blank line between function calls. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_xmit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c
index d5ce1e2a1658..f2dd7a60f67c 100644
--- a/drivers/staging/rtl8188eu/core/rtw_xmit.c
+++ b/drivers/staging/rtl8188eu/core/rtw_xmit.c
@@ -247,11 +247,8 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
pxmitbuf++;
}
- if (pxmitpriv->pallocated_frame_buf)
- vfree(pxmitpriv->pallocated_frame_buf);
-
- if (pxmitpriv->pallocated_xmitbuf)
- vfree(pxmitpriv->pallocated_xmitbuf);
+ vfree(pxmitpriv->pallocated_frame_buf);
+ vfree(pxmitpriv->pallocated_xmitbuf);
/* free xmit extension buff */
pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmit_extbuf;