net: wireless: broadcom: brcm80211: brcmfmac: usb: don't print error when allocating...
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:05:31 +0000 (23:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 21:53:40 +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/broadcom/brcm80211/brcmfmac/usb.c

index 98b15a9a2779f450b9bfbf760c734c870c7857fe..fa26619a7945d96dd0121ff127ffc387d72d2f49 100644 (file)
@@ -1099,15 +1099,11 @@ struct brcmf_usbdev *brcmf_usb_attach(struct brcmf_usbdev_info *devinfo,
        devinfo->tx_freecount = ntxq;
 
        devinfo->ctl_urb = usb_alloc_urb(0, GFP_ATOMIC);
-       if (!devinfo->ctl_urb) {
-               brcmf_err("usb_alloc_urb (ctl) failed\n");
+       if (!devinfo->ctl_urb)
                goto error;
-       }
        devinfo->bulk_urb = usb_alloc_urb(0, GFP_ATOMIC);
-       if (!devinfo->bulk_urb) {
-               brcmf_err("usb_alloc_urb (bulk) failed\n");
+       if (!devinfo->bulk_urb)
                goto error;
-       }
 
        return &devinfo->bus_pub;