staging: r8188eu: remove needless check before usb_free_urb()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 23 Sep 2013 13:55:45 +0000 (21:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:48:46 +0000 (16:48 -0700)
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>
drivers/staging/rtl8188eu/os_dep/recv_linux.c

index c40ef1357117d0db7d96c85946a2e5b6a38980f7..3852ff43810ddde4944f7f615ba44e503652097f 100644 (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;
 }
 
This page took 0.035899 seconds and 5 git commands to generate.