Commit d597aaef authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: s_nsBulkOutIoCompleteWrite remove buf_len.

Use context->uBufLen directly which is unsigned int.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07bc8398
...@@ -584,7 +584,6 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -584,7 +584,6 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
struct vnt_usb_send_context *context = urb->context; struct vnt_usb_send_context *context = urb->context;
struct vnt_private *priv = context->pDevice; struct vnt_private *priv = context->pDevice;
u8 context_type = context->type; u8 context_type = context->type;
unsigned long buf_len = context->uBufLen;
int status; int status;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkOutIoCompleteWrite\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkOutIoCompleteWrite\n");
...@@ -610,7 +609,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -610,7 +609,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
if (status == STATUS_SUCCESS) { if (status == STATUS_SUCCESS) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"Write %d bytes\n", (int)buf_len); "Write %d bytes\n", context->uBufLen);
} else { } else {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"BULK Out failed %d\n", status); "BULK Out failed %d\n", status);
...@@ -622,7 +621,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -622,7 +621,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
dev_kfree_skb_irq(context->pPacket); dev_kfree_skb_irq(context->pPacket);
context->pPacket = NULL; context->pPacket = NULL;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"tx %d bytes\n", (int)buf_len); "tx %d bytes\n", context->uBufLen);
} }
priv->dev->trans_start = jiffies; priv->dev->trans_start = jiffies;
......
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