Commit fc56da79 authored by Wolfram Sang's avatar Wolfram Sang Committed by Mauro Carvalho Chehab

[media] media: usb: s2255: s2255drv: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 59b5d249
...@@ -2113,11 +2113,8 @@ static int s2255_start_readpipe(struct s2255_dev *dev) ...@@ -2113,11 +2113,8 @@ static int s2255_start_readpipe(struct s2255_dev *dev)
pipe_info->state = 1; pipe_info->state = 1;
pipe_info->err_count = 0; pipe_info->err_count = 0;
pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!pipe_info->stream_urb) { if (!pipe_info->stream_urb)
dev_err(&dev->udev->dev,
"ReadStream: Unable to alloc URB\n");
return -ENOMEM; return -ENOMEM;
}
/* transfer buffer allocated in board_init */ /* transfer buffer allocated in board_init */
usb_fill_bulk_urb(pipe_info->stream_urb, dev->udev, usb_fill_bulk_urb(pipe_info->stream_urb, dev->udev,
pipe, pipe,
...@@ -2290,10 +2287,8 @@ static int s2255_probe(struct usb_interface *interface, ...@@ -2290,10 +2287,8 @@ static int s2255_probe(struct usb_interface *interface,
} }
dev->fw_data->fw_urb = usb_alloc_urb(0, GFP_KERNEL); dev->fw_data->fw_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!dev->fw_data->fw_urb) { if (!dev->fw_data->fw_urb)
dev_err(&interface->dev, "out of memory!\n");
goto errorFWURB; goto errorFWURB;
}
dev->fw_data->pfw_data = kzalloc(CHUNK_SIZE, GFP_KERNEL); dev->fw_data->pfw_data = kzalloc(CHUNK_SIZE, GFP_KERNEL);
if (!dev->fw_data->pfw_data) { if (!dev->fw_data->pfw_data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment