Staging: rtl8188eu: core: rtw_xmit.c: Remove NULL test before vfree
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 15 Feb 2016 08:58:22 +0000 (14:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:06:51 +0000 (15:06 -0800)
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>
drivers/staging/rtl8188eu/core/rtw_xmit.c

index d5ce1e2a16588fa1de632224fe8da58d25c20862..f2dd7a60f67c9f912901dcb64eb7b03e9e699138 100644 (file)
@@ -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;
This page took 0.027204 seconds and 5 git commands to generate.