diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 17:04:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 08:27:34 -0400 |
commit | 50d286470cd5dd6a855a34b099dbed85b58688ed (patch) | |
tree | 274f007a37c7ff4fdcc48df877f4deecf5c25255 /drivers/media | |
parent | aab74635045bba4624c2e3cb6953c45ac5953a91 (diff) |
[media] 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/zr364xx/zr364xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/zr364xx/zr364xx.c b/drivers/media/usb/zr364xx/zr364xx.c index 7433ba5c4bad..cc128db85723 100644 --- a/drivers/media/usb/zr364xx/zr364xx.c +++ b/drivers/media/usb/zr364xx/zr364xx.c | |||
@@ -1045,10 +1045,8 @@ static int zr364xx_start_readpipe(struct zr364xx_camera *cam) | |||
1045 | pipe_info->state = 1; | 1045 | pipe_info->state = 1; |
1046 | pipe_info->err_count = 0; | 1046 | pipe_info->err_count = 0; |
1047 | pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); | 1047 | pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); |
1048 | if (!pipe_info->stream_urb) { | 1048 | if (!pipe_info->stream_urb) |
1049 | dev_err(&cam->udev->dev, "ReadStream: Unable to alloc URB\n"); | ||
1050 | return -ENOMEM; | 1049 | return -ENOMEM; |
1051 | } | ||
1052 | /* transfer buffer allocated in board_init */ | 1050 | /* transfer buffer allocated in board_init */ |
1053 | usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, | 1051 | usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, |
1054 | pipe, | 1052 | pipe, |