Commit 3fbcb92b authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: hdm-usb: remove calls to usb_unachor_urb



This patch removes the calls to usb_unanchor_urb() from the completion
routines, since disassociation of the URBs is already handles by the
USB subsystem.

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d223b37c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -401,7 +401,6 @@ static void hdm_write_completion(struct urb *urb)
			mbo->status = MBO_E_INVAL;
			break;
		}
		usb_unanchor_urb(urb);
	} else {
		mbo->status = MBO_SUCCESS;
		mbo->processed_length = urb->actual_length;
@@ -558,7 +557,6 @@ static void hdm_read_completion(struct urb *urb)
			mbo->status = MBO_E_INVAL;
			break;
		}
		usb_unanchor_urb(urb);
	} else {
		mbo->processed_length = urb->actual_length;
		mbo->status = MBO_SUCCESS;