ChangeSet 1.1303.2.4, 2003/06/05 01:27:46-07:00, oliver@neukum.org [PATCH] USB: usb_set_configuration in empeg.c you should not drop errors. - proper error detection during initialisation drivers/usb/serial/empeg.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -Nru a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c --- a/drivers/usb/serial/empeg.c Thu Jun 5 13:44:54 2003 +++ b/drivers/usb/serial/empeg.c Thu Jun 5 13:44:54 2003 @@ -460,14 +460,15 @@ static int empeg_startup (struct usb_serial *serial) { + int r; dbg("%s", __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 */ - return 0; + return r; }