Simplified code.

This commit is contained in:
skarg
2007-11-12 16:10:51 +00:00
parent 50f095c6b1
commit b35b6409dd
+6 -10
View File
@@ -357,16 +357,12 @@ static bool dlmstp_compare_data_expecting_reply(
default: default:
return false; return false;
} }
/* these don't have service choice included */ if (request.invoke_id != reply.invoke_id) {
if ((reply.pdu_type == PDU_TYPE_REJECT) || return false;
(reply.pdu_type == PDU_TYPE_ABORT)) { }
if (request.invoke_id != reply.invoke_id) { /* these services don't have service choice included */
return false; if ((reply.pdu_type != PDU_TYPE_REJECT) &&
} (reply.pdu_type != PDU_TYPE_ABORT)) {
} else {
if (request.invoke_id != reply.invoke_id) {
return false;
}
if (request.service_choice != reply.service_choice) { if (request.service_choice != reply.service_choice) {
return false; return false;
} }