diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-08-28 14:43:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:58 -0400 |
commit | 13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff (patch) | |
tree | 539065e3ee004ad8aa4fb3bddc7a8d1f5d145c16 /drivers/usb/serial/usb-serial.c | |
parent | 1ee95216c0db6305c047a90b0822e2f1d2d5acdc (diff) |
USB: fix __must_check warnings in drivers/usb/serial/
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 1f21a9d4b700..03c619478a7c 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -932,7 +932,10 @@ int usb_serial_probe(struct usb_interface *interface, | |||
932 | 932 | ||
933 | snprintf (&port->dev.bus_id[0], sizeof(port->dev.bus_id), "ttyUSB%d", port->number); | 933 | snprintf (&port->dev.bus_id[0], sizeof(port->dev.bus_id), "ttyUSB%d", port->number); |
934 | dbg ("%s - registering %s", __FUNCTION__, port->dev.bus_id); | 934 | dbg ("%s - registering %s", __FUNCTION__, port->dev.bus_id); |
935 | device_register (&port->dev); | 935 | retval = device_register(&port->dev); |
936 | if (retval) | ||
937 | dev_err(&port->dev, "Error registering port device, " | ||
938 | "continuing\n"); | ||
936 | } | 939 | } |
937 | 940 | ||
938 | usb_serial_console_init (debug, minor); | 941 | usb_serial_console_init (debug, minor); |