Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c398a38 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: s_nsBulkOutIoCompleteWrite reorganise variable order.



Declare in order of pointer use.

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ae2777c
Loading
Loading
Loading
Loading
+5 −12
Original line number Original line Diff line number Diff line
@@ -607,21 +607,14 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice,


static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
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;
	int status;
	CONTEXT_TYPE ContextType;
	unsigned long ulBufLen;
	struct vnt_usb_send_context *pContext;


    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkOutIoCompleteWrite\n");
    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))
    if (!netif_device_present(pDevice->dev))
	    return;
	    return;