mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 14:36:42 +07:00
usb: pwc-if free urb cleanup
- usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4c6f7d4a88
commit
90b2625a51
@ -867,8 +867,7 @@ int pwc_isoc_init(struct pwc_device *pdev)
|
||||
if (ret) {
|
||||
/* De-allocate in reverse order */
|
||||
while (i--) {
|
||||
if (pdev->sbuf[i].urb != NULL)
|
||||
usb_free_urb(pdev->sbuf[i].urb);
|
||||
usb_free_urb(pdev->sbuf[i].urb);
|
||||
pdev->sbuf[i].urb = NULL;
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user