From 133383035f0bbed629ed2600744a94783ccc8916 Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Tue, 25 Feb 2014 20:51:43 +0000 Subject: [PATCH] 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: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6656/usbpipe.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 1fc382d59a3f..a93d0ff46c01 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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++; @@ -570,11 +573,6 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice, return STATUS_FAILURE; } return STATUS_PENDING; - } - else { - pContext->bBoolInUse = false; - return STATUS_RESOURCES; - } } /* -- 2.30.2