diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 19:55:48 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 19:55:48 +0400 |
commit | c6ab0158007e5ed9108fd74fe0f61b5b2a326eb9 (patch) | |
tree | 13eb21536cbbbcdca24b2e145aae0f8d906fd0da /drivers/usb/serial | |
parent | 3033bc8d74c1a9d9104b9f231283e780e6dd8de7 (diff) | |
download | linux-c6ab0158007e5ed9108fd74fe0f61b5b2a326eb9.tar.xz |
USB: serial: ezusb: remove last printk() call
This code shouldn't be calling printk(), no one needs to know this debug
message, the return code is good enough.
Cc: "René Bürgel" <rene.buergel@sohard.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/ezusb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/serial/ezusb.c b/drivers/usb/serial/ezusb.c index 3048b52d2d39..a9b5263221fa 100644 --- a/drivers/usb/serial/ezusb.c +++ b/drivers/usb/serial/ezusb.c @@ -26,11 +26,8 @@ int ezusb_writememory(struct usb_device *dev, int address, int result; unsigned char *transfer_buffer; - if (!dev) { - printk(KERN_ERR "ezusb: %s - no physical device present, " - "failing.\n", __func__); + if (!dev) return -ENODEV; - } transfer_buffer = kmemdup(data, length, GFP_KERNEL); if (!transfer_buffer) { |