On Mon, Dec 11, 2017 at 12:11:52AM +0100, Ladislav Michl wrote: > Refactor bulk callback functions to make use of goto pointless. > > Signed-off-by: Ladislav Michl <ladis@xxxxxxxxxxxxxx> > --- > drivers/usb/serial/generic.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c > index 2274d9625f63..d1a09ba10b6f 100644 > --- a/drivers/usb/serial/generic.c > +++ b/drivers/usb/serial/generic.c > @@ -389,6 +389,9 @@ void usb_serial_generic_read_bulk_callback(struct urb *urb) > urb->actual_length); > switch (status) { > case 0: > + usb_serial_debug_data(&port->dev, __func__, > + urb->actual_length, data); > + port->serial->type->process_read_urb(urb); > break; So as for the ti driver, I prefer keeping the success path out of the switch statement. Thanks, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html