Skip to content

Commit 01a9bdf

Browse files
author
Ralph Castain
committed
Cleanup of ud/oob component
1 parent 1f8de27 commit 01a9bdf

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

orte/mca/oob/ud/oob_ud_req.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* reserved.
55
* 2014 Mellanox Technologies, Inc.
66
* All rights reserved.
7-
* Copyright (c) 2015 Intel, Inc. All rights reserved.
7+
* Copyright (c) 2015 Intel, Inc. All rights reserved.
88
* $COPYRIGHT$
99
*
1010
* Additional copyrights may follow
@@ -287,10 +287,11 @@ void mca_oob_ud_req_complete (mca_oob_ud_req_t *req, int rc)
287287
case MCA_OOB_UD_REQ_SEND:
288288
if (req->req_data_type != MCA_OOB_UD_REQ_TR) {
289289
req->rml_msg->status = rc;
290-
if( NULL == req->rml_msg->channel)
290+
if( NULL == req->rml_msg->channel) {
291291
ORTE_RML_SEND_COMPLETE(req->rml_msg);
292-
else
292+
} else {
293293
ORTE_QOS_SEND_COMPLETE(req->rml_msg);
294+
}
294295
}
295296
break;
296297
case MCA_OOB_UD_REQ_RECV:
@@ -323,7 +324,7 @@ void mca_oob_ud_req_complete (mca_oob_ud_req_t *req, int rc)
323324
snd->origin = req->req_origin;
324325
snd->tag = req->req_tag;
325326
snd->dst_channel = req->req_channel;
326-
snd->seq_num = req->req_seqnum;
327+
snd->seq_num = req->req_seq_num;
327328
if (MCA_OOB_UD_REQ_IOV == req->req_data_type) {
328329
char *data = (char *)calloc(req->req_data.iov.count, sizeof(struct iovec));
329330
int datalen = 0;

orte/mca/oob/ud/oob_ud_send.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* reserved.
55
* 2014 Mellanox Technologies, Inc.
66
* All rights reserved.
7-
* Copyright (c) 2015 Intel, Inc. All rights reserved.
7+
* Copyright (c) 2015 Intel, Inc. All rights reserved.
88
* $COPYRIGHT$
99
*
1010
* Additional copyrights may follow
@@ -108,10 +108,11 @@ static int mca_oob_ud_send_self (orte_rml_send_t *msg)
108108

109109
req->rml_msg->status = ORTE_SUCCESS;
110110

111-
if( NULL == req->rml_msg->channel)
112-
ORTE_RML_SEND_COMPLETE(req->rml_msg->msg);
113-
else
114-
ORTE_QOS_SEND_COMPLETE(req->rml_msg->msg);
111+
if( NULL == req->rml_msg->channel) {
112+
ORTE_RML_SEND_COMPLETE(req->rml_msg);
113+
} else {
114+
ORTE_QOS_SEND_COMPLETE(req->rml_msg);
115+
}
115116

116117
return size;
117118
}

0 commit comments

Comments
 (0)