]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/winbond/wb35rx.c
Staging: winbond: usb_free_urb(NULL) is safe
[~andy/linux] / drivers / staging / winbond / wb35rx.c
index f118eeba396ae195bb77da4a9d8a518570accbe4..8d71bc2f5940b6f2037a225e00528fd8ee71bc43 100644 (file)
@@ -343,8 +343,7 @@ void Wb35Rx_destroy(struct hw_data *pHwData)
        } while (pWb35Rx->EP3vm_state != VM_STOP);
        msleep(10); /* Delay for waiting function exit */
 
-       if (pWb35Rx->RxUrb)
-               usb_free_urb(pWb35Rx->RxUrb);
+       usb_free_urb(pWb35Rx->RxUrb);
        pr_debug("Wb35Rx_destroy OK\n");
 }