Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da8794ce authored by Wolfram Sang's avatar Wolfram Sang Committed by David S. Miller
Browse files

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: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3de6e885
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -198,22 +198,16 @@ static int if_usb_probe(struct usb_interface *intf,
	}

	cardp->rx_urb = usb_alloc_urb(0, GFP_KERNEL);
	if (!cardp->rx_urb) {
		lbtf_deb_usbd(&udev->dev, "Rx URB allocation failed\n");
	if (!cardp->rx_urb)
		goto dealloc;
	}

	cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL);
	if (!cardp->tx_urb) {
		lbtf_deb_usbd(&udev->dev, "Tx URB allocation failed\n");
	if (!cardp->tx_urb)
		goto dealloc;
	}

	cardp->cmd_urb = usb_alloc_urb(0, GFP_KERNEL);
	if (!cardp->cmd_urb) {
		lbtf_deb_usbd(&udev->dev, "Cmd URB allocation failed\n");
	if (!cardp->cmd_urb)
		goto dealloc;
	}

	cardp->ep_out_buf = kmalloc(MRVDRV_ETH_TX_PACKET_BUFFER_SIZE,
				    GFP_KERNEL);