ChangeSet 1.1303.2.4, 2003/06/05 01:27:46-07:00, [EMAIL PROTECTED]

[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;
 
 }
 



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to