Commit b79f3f68 authored by Dileep Sankhla's avatar Dileep Sankhla Committed by Greg Kroah-Hartman

staging: vt6656: Remove unnecessary 'out of memory' message

This patch removes the unnecessary out of memory message fixing the
following checkpatch.pl warning in usbpipe.c:
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: default avatarDileep Sankhla <sankhla.dileep96@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 77ab45a4
...@@ -194,9 +194,6 @@ static void vnt_submit_rx_urb_complete(struct urb *urb) ...@@ -194,9 +194,6 @@ static void vnt_submit_rx_urb_complete(struct urb *urb)
if (vnt_rx_data(priv, rcb, urb->actual_length)) { if (vnt_rx_data(priv, rcb, urb->actual_length)) {
rcb->skb = dev_alloc_skb(priv->rx_buf_sz); rcb->skb = dev_alloc_skb(priv->rx_buf_sz);
if (!rcb->skb) { if (!rcb->skb) {
dev_dbg(&priv->usb->dev,
"Failed to re-alloc rx skb\n");
rcb->in_use = false; rcb->in_use = false;
return; return;
} }
......
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