From: Wei Yongjun Date: Mon, 23 Sep 2013 13:55:45 +0000 (+0800) Subject: staging: r8188eu: remove needless check before usb_free_urb() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a4ec93d8b4647358aaa1bde4e1fc055e5f4cf711;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers/staging/rtl8188eu/os_dep/recv_linux.c index c40ef1357117..3852ff43810d 100644 --- a/drivers/staging/rtl8188eu/os_dep/recv_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/recv_linux.c @@ -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; }