fix: correct result variable scope in initDriver
The `initDriver` function had an issue where a new `result` variable was defined in a lower scope, causing the initialization result to be discarded. This commit removes the redundant variable declaration, ensuring that the `result` variable initialized in the upper scope is correctly set by the `Driver::get()->initialize` method and properly reflects the driver initialization status. Related-To: NEO-13686 Signed-off-by: Jack Myers <jack.myers@intel.com>
This commit is contained in:
parent
9a149b6da5
commit
127af1a715
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -159,7 +159,6 @@ ze_result_t initDriver() {
|
|||
std::lock_guard<std::mutex> lock(driverInitMutex);
|
||||
|
||||
if (Driver::get()->getPid() != pid) {
|
||||
ze_result_t result;
|
||||
Driver::get()->initialize(&result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue