Commit d94f9eea authored by Oliver Neukum's avatar Oliver Neukum Committed by Ben Collins

[PATCH] USB: usb_set_configuration in empeg.c

you should not drop errors.
  - proper error detection during initialisation
parent 6e0db084
...@@ -460,14 +460,15 @@ static void empeg_unthrottle (struct usb_serial_port *port) ...@@ -460,14 +460,15 @@ static void empeg_unthrottle (struct usb_serial_port *port)
static int empeg_startup (struct usb_serial *serial) static int empeg_startup (struct usb_serial *serial)
{ {
int r;
dbg("%s", __FUNCTION__); dbg("%s", __FUNCTION__);
dbg("%s - Set config to 1", __FUNCTION__); dbg("%s - Set config to 1", __FUNCTION__);
usb_set_configuration (serial->dev, 1); r = usb_set_configuration (serial->dev, 1);
/* continue on with initialization */ /* continue on with initialization */
return 0; return r;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment