Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee692cfa authored by Harsh Kumar's avatar Harsh Kumar Committed by Greg Kroah-Hartman
Browse files

Staging: winbond: usb_free_urb(NULL) is safe



usb_free_urb(NULL) is safe. So, the check was removed.

Signed-off-by: default avatarHarsh Kumar <harsh1kumar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 926ae525
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -170,10 +170,7 @@ void Wb35Tx_destroy(struct hw_data *pHwData)
	} while ((pWb35Tx->EP2vm_state != VM_STOP) && (pWb35Tx->EP4vm_state != VM_STOP));
	msleep(10); /* Delay for waiting function enter 940623.1.b */

	if (pWb35Tx->Tx4Urb)
	usb_free_urb(pWb35Tx->Tx4Urb);

	if (pWb35Tx->Tx2Urb)
	usb_free_urb(pWb35Tx->Tx2Urb);

	pr_debug("Wb35Tx_destroy OK\n");