Get rid of unnessary else statement by !(MP_IS_READY(pDevice) &&
pDevice->Flags & fMP_POST_WRITES)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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++;
return STATUS_FAILURE;
}
return STATUS_PENDING;
- }
- else {
- pContext->bBoolInUse = false;
- return STATUS_RESOURCES;
- }
}
/*