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

staging: vt6656: PIPEnsSendBulkOut reverse if statement



Get rid of unnessary else statement by !(MP_IS_READY(pDevice) &&
pDevice->Flags & fMP_POST_WRITES)

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c8b84ef
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -548,7 +548,10 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice,

    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"s_nsSendBulkOut\n");

    if (MP_IS_READY(pDevice) && (pDevice->Flags & fMP_POST_WRITES)) {
	if (!(MP_IS_READY(pDevice) && pDevice->Flags & fMP_POST_WRITES)) {
		pContext->bBoolInUse = false;
		return STATUS_RESOURCES;
	}

        pUrb = pContext->pUrb;
        pDevice->ulBulkOutPosted++;
@@ -571,11 +574,6 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice,
    	}
        return STATUS_PENDING;
}
    else {
        pContext->bBoolInUse = false;
        return STATUS_RESOURCES;
    }
}

/*
 * Description: s_nsBulkOutIoCompleteWrite