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

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
...@@ -77,7 +77,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter, ...@@ -77,7 +77,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
int rtw_os_recvbuf_resource_free(struct adapter *padapter, int rtw_os_recvbuf_resource_free(struct adapter *padapter,
struct recv_buf *precvbuf) struct recv_buf *precvbuf)
{ {
if (precvbuf->purb)
usb_free_urb(precvbuf->purb); usb_free_urb(precvbuf->purb);
return _SUCCESS; return _SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment