From 92665d2b5587574bef5b858a299ae18ecc6ec493 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Wed, 12 Sep 2012 07:59:28 +0000 Subject: [PATCH] Restart the USB transfer if the error is not USB_ERR_CANCELLED. --- sys/dev/usb/serial/ufoma.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/dev/usb/serial/ufoma.c b/sys/dev/usb/serial/ufoma.c index d929f8630ef0..200e493d2923 100644 --- a/sys/dev/usb/serial/ufoma.c +++ b/sys/dev/usb/serial/ufoma.c @@ -631,10 +631,7 @@ ufoma_ctrl_read_callback(struct usb_xfer *xfer, usb_error_t error) if (error == USB_ERR_CANCELLED) { return; - } else { - goto tr_setup; } - goto tr_transferred; } } @@ -651,7 +648,6 @@ ufoma_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error) case USB_ST_TRANSFERRED: tr_transferred: case USB_ST_SETUP: -tr_setup: pc = usbd_xfer_get_frame(xfer, 1); if (ucom_get_data(&sc->sc_ucom, pc, 0, 1, &actlen)) { @@ -677,10 +673,7 @@ ufoma_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error) if (error == USB_ERR_CANCELLED) { return; - } else { - goto tr_setup; } - goto tr_transferred; } }