diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 18:03:52 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 08:51:32 -0300 |
commit | 452b53f7f844d3fe9e9484fa16f7ebbe1e9b8c27 (patch) | |
tree | 11029c25cf65ec2f3b626ef8930983487c21f832 /drivers/media/usb/gspca/gspca.c | |
parent | 60e3699946481eb10d7d8be1f28029649fc2c208 (diff) | |
download | linux-stable-452b53f7f844d3fe9e9484fa16f7ebbe1e9b8c27.tar.gz linux-stable-452b53f7f844d3fe9e9484fa16f7ebbe1e9b8c27.tar.bz2 linux-stable-452b53f7f844d3fe9e9484fa16f7ebbe1e9b8c27.zip |
[media] media: usb: gspca: gspca: 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/usb/gspca/gspca.c')
-rw-r--r-- | drivers/media/usb/gspca/gspca.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/gspca/gspca.c b/drivers/media/usb/gspca/gspca.c index b17bd7ebcb47..af2395a76d8b 100644 --- a/drivers/media/usb/gspca/gspca.c +++ b/drivers/media/usb/gspca/gspca.c @@ -795,10 +795,8 @@ static int create_urbs(struct gspca_dev *gspca_dev, for (n = 0; n < nurbs; n++) { urb = usb_alloc_urb(npkt, GFP_KERNEL); - if (!urb) { - pr_err("usb_alloc_urb failed\n"); + if (!urb) return -ENOMEM; - } gspca_dev->urb[n] = urb; urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, bsize, |