Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da04bf74 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 64e6619f
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -247,10 +247,7 @@ 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);

	/*  free xmit extension buff */