media: usb: gspca: konica: 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>
This commit is contained in:
Wolfram Sang 2016-08-11 23:03:53 +02:00 committed by Greg Kroah-Hartman
parent b2a057b053
commit e8407a5995

View File

@ -208,10 +208,8 @@ static int sd_start(struct gspca_dev *gspca_dev)
packet_size = packet_size =
le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize); le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize);
urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL);
if (!urb) { if (!urb)
pr_err("usb_alloc_urb failed\n");
return -ENOMEM; return -ENOMEM;
}
gspca_dev->urb[n] = urb; gspca_dev->urb[n] = urb;
urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev,
packet_size * SD_NPKT, packet_size * SD_NPKT,