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

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>

authored by

Wolfram Sang and committed by
David S. Miller
da8794ce 3de6e885

+3 -9
+3 -9
drivers/net/wireless/marvell/libertas_tf/if_usb.c
··· 198 198 } 199 199 200 200 cardp->rx_urb = usb_alloc_urb(0, GFP_KERNEL); 201 - if (!cardp->rx_urb) { 202 - lbtf_deb_usbd(&udev->dev, "Rx URB allocation failed\n"); 201 + if (!cardp->rx_urb) 203 202 goto dealloc; 204 - } 205 203 206 204 cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL); 207 - if (!cardp->tx_urb) { 208 - lbtf_deb_usbd(&udev->dev, "Tx URB allocation failed\n"); 205 + if (!cardp->tx_urb) 209 206 goto dealloc; 210 - } 211 207 212 208 cardp->cmd_urb = usb_alloc_urb(0, GFP_KERNEL); 213 - if (!cardp->cmd_urb) { 214 - lbtf_deb_usbd(&udev->dev, "Cmd URB allocation failed\n"); 209 + if (!cardp->cmd_urb) 215 210 goto dealloc; 216 - } 217 211 218 212 cardp->ep_out_buf = kmalloc(MRVDRV_ETH_TX_PACKET_BUFFER_SIZE, 219 213 GFP_KERNEL);