Commit 68d81dea authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

staging: vt6656: main_usb: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e89549b9
...@@ -440,10 +440,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv) ...@@ -440,10 +440,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv)
/* allocate URBs */ /* allocate URBs */
tx_context->urb = usb_alloc_urb(0, GFP_KERNEL); tx_context->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!tx_context->urb) { if (!tx_context->urb)
dev_err(&priv->usb->dev, "alloc tx urb failed\n");
goto free_tx; goto free_tx;
}
tx_context->in_use = false; tx_context->in_use = false;
} }
...@@ -462,10 +460,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv) ...@@ -462,10 +460,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv)
/* allocate URBs */ /* allocate URBs */
rcb->urb = usb_alloc_urb(0, GFP_KERNEL); rcb->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!rcb->urb) { if (!rcb->urb)
dev_err(&priv->usb->dev, "Failed to alloc rx urb\n");
goto free_rx_tx; goto free_rx_tx;
}
rcb->skb = dev_alloc_skb(priv->rx_buf_sz); rcb->skb = dev_alloc_skb(priv->rx_buf_sz);
if (!rcb->skb) if (!rcb->skb)
...@@ -479,10 +475,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv) ...@@ -479,10 +475,8 @@ static bool vnt_alloc_bufs(struct vnt_private *priv)
} }
priv->interrupt_urb = usb_alloc_urb(0, GFP_KERNEL); priv->interrupt_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!priv->interrupt_urb) { if (!priv->interrupt_urb)
dev_err(&priv->usb->dev, "Failed to alloc int urb\n");
goto free_rx_tx; goto free_rx_tx;
}
priv->int_buf.data_buf = kmalloc(MAX_INTERRUPT_SIZE, GFP_KERNEL); priv->int_buf.data_buf = kmalloc(MAX_INTERRUPT_SIZE, GFP_KERNEL);
if (!priv->int_buf.data_buf) { if (!priv->int_buf.data_buf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment