aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2014-02-19 21:50:14 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-24 16:57:44 -0800
commit1c398a38fbc73b640b0e546d27e3e1b5610ea8e5 (patch)
tree4cb6eac30885a125fa386c441b4515756a410dab
parentstaging: vt6656: vRunCommand remove multi calls to s_bCommandComplete. (diff)
staging: vt6656: s_nsBulkOutIoCompleteWrite reorganise variable order.
Declare in order of pointer use. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/usbpipe.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c
index 79e38b7832de..16acc9a77e4e 100644
--- a/drivers/staging/vt6656/usbpipe.c
+++ b/drivers/staging/vt6656/usbpipe.c
@@ -607,21 +607,14 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice,
static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
{
- struct vnt_private *pDevice;
+ struct vnt_usb_send_context *pContext =
+ (struct vnt_usb_send_context *)urb->context;
+ struct vnt_private *pDevice = pContext->pDevice;
+ CONTEXT_TYPE ContextType = pContext->Type;
+ unsigned long ulBufLen = pContext->uBufLen;
int status;
- CONTEXT_TYPE ContextType;
- unsigned long ulBufLen;
- struct vnt_usb_send_context *pContext;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkOutIoCompleteWrite\n");
- //
- // The context given to IoSetCompletionRoutine is an USB_CONTEXT struct
- //
- pContext = (struct vnt_usb_send_context *)urb->context;
-
- pDevice = pContext->pDevice;
- ContextType = pContext->Type;
- ulBufLen = pContext->uBufLen;
if (!netif_device_present(pDevice->dev))
return;