Skip to content

Commit b15ef7b

Browse files
mtargowsigcbot
authored andcommitted
Generic changes
Generic changes.
1 parent 0c59754 commit b15ef7b

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

visa/iga/IGALibrary/api/kv.cpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,21 @@ uint32_t kv_get_send_descs(const kv_t *kv, int32_t pc, uint32_t *ex_desc,
309309
}
310310

311311
uint32_t n = 0;
312-
if (inst->getExtMsgDescriptor().isImm()) {
313-
n++;
314-
*ex_desc = inst->getExtMsgDescriptor().imm;
315-
} else {
316-
*ex_desc = KV_INVALID_SEND_DESC;
317-
}
318-
if (inst->getMsgDescriptor().isImm()) {
319-
n++;
320-
*desc = inst->getMsgDescriptor().imm;
321-
} else {
322-
*desc = KV_INVALID_SEND_DESC;
323-
}
312+
if (inst->getExtMsgDescriptor().isImm()) {
313+
n++;
314+
*ex_desc = inst->getExtMsgDescriptor().imm;
315+
}
316+
else {
317+
*ex_desc = KV_INVALID_SEND_DESC;
318+
}
319+
if (inst->getMsgDescriptor().isImm()) {
320+
n++;
321+
*desc = inst->getMsgDescriptor().imm;
322+
}
323+
else {
324+
*desc = KV_INVALID_SEND_DESC;
325+
}
326+
324327
return n;
325328
}
326329

0 commit comments

Comments
 (0)