mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: Use else if instead of nested else-if conditions
Replaces nested else-if with else if for consistency and readability. No functional changes. Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed15408592
commit
f4bd4e603d
@@ -570,10 +570,8 @@ ze_result_t DebugSessionImp::resume(ze_device_thread_t thread) {
|
||||
|
||||
if (connectedDevice->getNEODevice()->isSubDevice()) {
|
||||
deviceIndex = Math::log2(static_cast<uint32_t>(connectedDevice->getNEODevice()->getDeviceBitfield().to_ulong()));
|
||||
} else {
|
||||
if (thread.slice != UINT32_MAX) {
|
||||
deviceIndex = getDeviceIndexFromApiThread(thread);
|
||||
}
|
||||
} else if (thread.slice != UINT32_MAX) {
|
||||
deviceIndex = getDeviceIndexFromApiThread(thread);
|
||||
}
|
||||
|
||||
auto result = resumeThreadsWithinDevice(deviceIndex, thread);
|
||||
|
||||
Reference in New Issue
Block a user