提交 da8794ce 编写于 作者: W Wolfram Sang 提交者: David S. Miller

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: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3de6e885
...@@ -198,22 +198,16 @@ static int if_usb_probe(struct usb_interface *intf, ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册