net: wireless: marvell: libertas_tf: if_usb: don't print error when allocating urb...
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:13:06 +0000 (23:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 21:53:41 +0000 (14:53 -0700)
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>
drivers/net/wireless/marvell/libertas_tf/if_usb.c

index 799a2efe57937241223aafcf3793586f7304346f..e0ade40d9497d7c81156220f394177cdb5c2be62 100644 (file)
@@ -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);
This page took 0.025872 seconds and 5 git commands to generate.