diff options
author | Wolfram Sang | 2016-08-11 23:05:31 +0200 |
---|---|---|
committer | David S. Miller | 2016-08-13 23:53:40 +0200 |
commit | 938f89e50a41c2d56710805fb019ad7618cef84b (patch) | |
tree | be6d0f0e9716f3aa153dc7a30c2b106c8e3be9fa | |
parent | net: wireless: ath: ar5523: ar5523: don't print error when allocating urb fails (diff) | |
download | kernel-qcow2-linux-938f89e50a41c2d56710805fb019ad7618cef84b.tar.gz kernel-qcow2-linux-938f89e50a41c2d56710805fb019ad7618cef84b.tar.xz kernel-qcow2-linux-938f89e50a41c2d56710805fb019ad7618cef84b.zip |
net: wireless: broadcom: brcm80211: brcmfmac: 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>
-rw-r--r-- | drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 98b15a9a2779..fa26619a7945 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -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; |