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

Commit f17331eb authored by Shyam Saini's avatar Shyam Saini Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: core: Remove NULL test before vfree



vfree frees the virtually continuous block of memory beginning at
addr. If addr is NULL, no operation is performed. So, NULL test is not
needed before vfree().

Signed-off-by: default avatarShyam Saini <mayhs11saini@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 564f87f9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -246,7 +246,6 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
		pxmitbuf++;
	}

	if (pxmitpriv->pallocated_xmit_extbuf)
	vfree(pxmitpriv->pallocated_xmit_extbuf);

	rtw_free_hwxmits(padapter);