media: usb: gspca: benq: 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:
parent
9ebaee44a6
commit
37fac9692f
|
@ -95,10 +95,8 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||||
#define SD_NPKT 32
|
#define SD_NPKT 32
|
||||||
for (n = 0; n < 4; n++) {
|
for (n = 0; n < 4; n++) {
|
||||||
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,
|
||||||
SD_PKT_SZ * SD_NPKT,
|
SD_PKT_SZ * SD_NPKT,
|
||||||
|
|
Loading…
Reference in New Issue