]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: misc: sisusbvga: sisusb: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:14:43 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:54:27 +0000 (15:54 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/sisusbvga/sisusb.c

index 02abfcdfbf7bc887b4b331a5da9066d5db8c152a..05bd39d62568198bc5ff5e6e0dc59910e279a677 100644 (file)
@@ -3084,7 +3084,6 @@ static int sisusb_probe(struct usb_interface *intf,
        /* Allocate URBs */
        sisusb->sisurbin = usb_alloc_urb(0, GFP_KERNEL);
        if (!sisusb->sisurbin) {
-               dev_err(&sisusb->sisusb_dev->dev, "Failed to allocate URBs\n");
                retval = -ENOMEM;
                goto error_3;
        }
@@ -3093,8 +3092,6 @@ static int sisusb_probe(struct usb_interface *intf,
        for (i = 0; i < sisusb->numobufs; i++) {
                sisusb->sisurbout[i] = usb_alloc_urb(0, GFP_KERNEL);
                if (!sisusb->sisurbout[i]) {
-                       dev_err(&sisusb->sisusb_dev->dev,
-                                       "Failed to allocate URBs\n");
                        retval = -ENOMEM;
                        goto error_4;
                }