USB: serial: ezusb: remove last printk() call
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 15:55:48 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 15:55:48 +0000 (16:55 +0100)
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>
drivers/usb/serial/ezusb.c

index 3048b52..a9b5263 100644 (file)
@@ -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) {