Get rid of unnessary else statement by !(MP_IS_READY(pDevice) && pDevice->Flags & fMP_POST_WRITES) Signed-off-by: Malcolm Priestley <tvboxspy@xxxxxxxxx> --- 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 1fc382d..a93d0ff 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; - } } /* -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html