Skip to content

Commit

Permalink
[code style] Resolve clang-tidy warnings (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcao59 authored Aug 30, 2024
1 parent aeb4b07 commit 4a45a93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sources/c_api/legacy_hw_path/qpl_hw_check_job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ qpl_status hw_check_compress_job(qpl_job* qpl_job_ptr) {
qpl_job_ptr->crc = comp_ptr->crc;
qpl_job_ptr->xor_checksum = comp_ptr->xor_checksum;

qpl_status status =
const qpl_status status =
hw_descriptor_compress_init_deflate_dynamic(desc_ptr, state_ptr, qpl_job_ptr, cfg_in_ptr, comp_ptr);
OWN_QPL_CHECK_STATUS(status)

Expand All @@ -282,18 +282,18 @@ qpl_status hw_check_compress_job(qpl_job* qpl_job_ptr) {
}
}

qpl_status status = ml::util::process_descriptor<qpl_status, ml::util::execution_mode_t::async>(
const qpl_status status = ml::util::process_descriptor<qpl_status, ml::util::execution_mode_t::async>(
(hw_descriptor*)desc_ptr, (hw_completion_record*)&state_ptr->comp_ptr, qpl_job_ptr->numa_id);

// if compression descriptor submission fails, skip statistics collection step in resubmitted job
if (0u != status) {
if (0U != status) {
state_ptr->descriptor_not_submitted = true;
state_ptr->multi_desc_status = qpl_stats_collect_completed;
} else {
state_ptr->descriptor_not_submitted = false;
}

HW_IMMEDIATELY_RET(0u != status, QPL_STS_QUEUES_ARE_BUSY_ERR);
HW_IMMEDIATELY_RET(0U != status, QPL_STS_QUEUES_ARE_BUSY_ERR);

return QPL_STS_BEING_PROCESSED;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/thread_tests/compressor_stress_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int compress_test() {
// If queues are busy, wait then resubmit before moving on
uint32_t resubmit_cnt = 0;

bool is_sync = !util::TestEnvironment::GetInstance().IsAsynchronousApiTesting();
const bool is_sync = !util::TestEnvironment::GetInstance().IsAsynchronousApiTesting();
if (is_sync) {
status = qpl_execute_job(job);

Expand Down

0 comments on commit 4a45a93

Please sign in to comment.