media: usb: pwc: pwc-if: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:03:57 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:13:54 +0000 (19:13 +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/media/usb/pwc/pwc-if.c

index b51b27a3fd6108c7c0b555d19f4b7d79b0f059da..c4454c928776f71c8d42ba61dec8f8ad22689051 100644 (file)
@@ -410,7 +410,6 @@ retry:
        for (i = 0; i < MAX_ISO_BUFS; i++) {
                urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL);
                if (urb == NULL) {
-                       PWC_ERROR("Failed to allocate urb %d\n", i);
                        pwc_isoc_cleanup(pdev);
                        return -ENOMEM;
                }