Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6656: main_usb: 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>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
68d81dea e89549b9

+3 -9
+3 -9
drivers/staging/vt6656/main_usb.c
··· 440 440 441 441 /* allocate URBs */ 442 442 tx_context->urb = usb_alloc_urb(0, GFP_KERNEL); 443 - if (!tx_context->urb) { 444 - dev_err(&priv->usb->dev, "alloc tx urb failed\n"); 443 + if (!tx_context->urb) 445 444 goto free_tx; 446 - } 447 445 448 446 tx_context->in_use = false; 449 447 } ··· 460 462 461 463 /* allocate URBs */ 462 464 rcb->urb = usb_alloc_urb(0, GFP_KERNEL); 463 - if (!rcb->urb) { 464 - dev_err(&priv->usb->dev, "Failed to alloc rx urb\n"); 465 + if (!rcb->urb) 465 466 goto free_rx_tx; 466 - } 467 467 468 468 rcb->skb = dev_alloc_skb(priv->rx_buf_sz); 469 469 if (!rcb->skb) ··· 475 479 } 476 480 477 481 priv->interrupt_urb = usb_alloc_urb(0, GFP_KERNEL); 478 - if (!priv->interrupt_urb) { 479 - dev_err(&priv->usb->dev, "Failed to alloc int urb\n"); 482 + if (!priv->interrupt_urb) 480 483 goto free_rx_tx; 481 - } 482 484 483 485 priv->int_buf.data_buf = kmalloc(MAX_INTERRUPT_SIZE, GFP_KERNEL); 484 486 if (!priv->int_buf.data_buf) {