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

Commit a4ec93d8 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: remove needless check before usb_free_urb()



usb_free_urb(NULL) is safe and this check is not required.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cdddc28a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
int rtw_os_recvbuf_resource_free(struct adapter *padapter,
				 struct recv_buf *precvbuf)
{
	if (precvbuf->purb)
	usb_free_urb(precvbuf->purb);
	return _SUCCESS;
}