staging: r8188eu: remove needless check before usb_free_urb()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yongjun 2013-09-23 21:55:45 +08:00 committed by Greg Kroah-Hartman
parent cdddc28a08
commit a4ec93d8b4

View file

@ -77,8 +77,7 @@ 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);
usb_free_urb(precvbuf->purb);
return _SUCCESS;
}