[media] 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 (18:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 12:25:20 +0000 (09:25 -0300)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
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;
                }