optimization

This commit is contained in:
Jeff Hill
2003-05-02 17:43:07 +00:00
parent 8b12a243a2
commit 817cd651c3
2 changed files with 6 additions and 13 deletions
+6 -10
View File
@@ -38,23 +38,19 @@ caStatus casAsyncPVAttachIOI::cbFuncAsyncIO (
{
caStatus status;
switch ( this->msg.m_cmmd ) {
case CA_PROTO_CREATE_CHAN:
if ( this->msg.m_cmmd == CA_PROTO_CREATE_CHAN ) {
status = this->client.createChanResponse ( guard,
this->msg, this->retVal );
if ( status == S_cas_sendBlocked ) {
return status;
}
break;
default:
}
else {
errPrintf ( S_cas_invalidAsynchIO, __FILE__, __LINE__,
" - client request type = %u", this->msg.m_cmmd );
status = S_cas_invalidAsynchIO;
break;
}
this->client.uninstallAsynchIO ( *this );
if ( status != S_cas_sendBlocked ) {
this->client.uninstallAsynchIO ( *this );
}
return status;
}
-3
View File
@@ -51,9 +51,6 @@ caStatus casAsyncPVExistIOI::cbFuncAsyncIO (
status = this->client.asyncSearchResponse (
guard, this->dgOutAddr, this->msg, this->retVal,
this->protocolRevision, this->sequenceNumber );
if ( status == S_cas_sendBlocked ) {
return status;
}
}
else {
errPrintf ( S_cas_invalidAsynchIO, __FILE__, __LINE__,