net: wireless: marvell: libertas_tf: if_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: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wolfram Sang 2016-08-11 23:13:06 +02:00 committed by David S. Miller
parent 3de6e8852f
commit da8794ce8e
1 changed files with 3 additions and 9 deletions

View File

@ -198,22 +198,16 @@ static int if_usb_probe(struct usb_interface *intf,
} }
cardp->rx_urb = usb_alloc_urb(0, GFP_KERNEL); cardp->rx_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!cardp->rx_urb) { if (!cardp->rx_urb)
lbtf_deb_usbd(&udev->dev, "Rx URB allocation failed\n");
goto dealloc; goto dealloc;
}
cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL); cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!cardp->tx_urb) { if (!cardp->tx_urb)
lbtf_deb_usbd(&udev->dev, "Tx URB allocation failed\n");
goto dealloc; goto dealloc;
}
cardp->cmd_urb = usb_alloc_urb(0, GFP_KERNEL); cardp->cmd_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!cardp->cmd_urb) { if (!cardp->cmd_urb)
lbtf_deb_usbd(&udev->dev, "Cmd URB allocation failed\n");
goto dealloc; goto dealloc;
}
cardp->ep_out_buf = kmalloc(MRVDRV_ETH_TX_PACKET_BUFFER_SIZE, cardp->ep_out_buf = kmalloc(MRVDRV_ETH_TX_PACKET_BUFFER_SIZE,
GFP_KERNEL); GFP_KERNEL);