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

index 7433ba5c4bad8bdf044435977409856b54c9ff9b..cc128db85723c90d1619d774e55af6e747604a5b 100644 (file)
@@ -1045,10 +1045,8 @@ static int zr364xx_start_readpipe(struct zr364xx_camera *cam)
        pipe_info->state = 1;
        pipe_info->err_count = 0;
        pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!pipe_info->stream_urb) {
-               dev_err(&cam->udev->dev, "ReadStream: Unable to alloc URB\n");
+       if (!pipe_info->stream_urb)
                return -ENOMEM;
-       }
        /* transfer buffer allocated in board_init */
        usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev,
                          pipe,