[media] media: usb: cpia2: cpia2_usb: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:03:44 +0000 (18:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 11:48:56 +0000 (08:48 -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/cpia2/cpia2_usb.c

index c1aa1ab2ece9ffc28d33a9cb4f0d44c2cca15948..13620cdf05996fd3d549a5668043db0b12b1d381 100644 (file)
@@ -662,7 +662,6 @@ static int submit_urbs(struct camera_data *cam)
                }
                urb = usb_alloc_urb(FRAMES_PER_DESC, GFP_KERNEL);
                if (!urb) {
-                       ERR("%s: usb_alloc_urb error!\n", __func__);
                        for (j = 0; j < i; j++)
                                usb_free_urb(cam->sbuf[j].urb);
                        return -ENOMEM;