Skip to content

Commit 1e25384

Browse files
committed
Klocwork fix
1 parent 342efcf commit 1e25384

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/acl_device_op_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ TEST(device_op, post_status) {
445445
CHECK(e);
446446

447447
acl_device_op_t *op = acl_propose_device_op(&m_doq, ACL_DEVICE_OP_NONE, e);
448-
CHECK_EQUAL(e, op->info.event);
449448
assert(op != NULL);
450-
449+
CHECK_EQUAL(e, op->info.event);
450+
451451
e->execution_status = CL_COMPLETE;
452452
op->timestamp[CL_QUEUED] = 40;
453453
op->timestamp[CL_SUBMITTED] = 41;
@@ -1072,6 +1072,7 @@ TEST(device_op, inter_group_concurrent_kernels) {
10721072

10731073
acl_device_op_t *op0 = acl_propose_device_op(&m_doq, ACL_DEVICE_OP_KERNEL, 0);
10741074
CHECK(op0);
1075+
assert(op0 != NULL);
10751076
acl_commit_proposed_device_ops(&m_doq);
10761077

10771078
acl_device_op_t *op1 = acl_propose_device_op(&m_doq, ACL_DEVICE_OP_KERNEL, 0);

0 commit comments

Comments
 (0)