1
0
Fork 0

media: usb: zr364xx: zr364xx: don't print error when allocating urb fails

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>
hifive-unleashed-5.1
Wolfram Sang 2016-08-11 23:04:04 +02:00 committed by Greg Kroah-Hartman
parent 44d6d61220
commit 4e9f037e20
1 changed files with 1 additions and 3 deletions

View 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,