Skip to content

Commit a9746c2

Browse files
committed
Address more code review issues.
Signed-off-by: Maronas, Marcos <[email protected]>
1 parent a529440 commit a9746c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/adapters/level_zero/device.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGet(
6666
// ZE_RESULT_SUCCESS or ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
6767
auto errc = ZE_CALL_NOCHECK(zeDeviceGetRootDevice,
6868
(D->ZeDevice, &RootDev));
69-
assert(errc == ZE_RESULT_SUCCESS ||
70-
errc == ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
71-
return RootDev != nullptr;
69+
return (errc == ZE_RESULT_SUCCESS && RootDev != nullptr);
7270
});
7371
for (auto &D : Platform->URDevicesCache) {
7472
// Only ever return root-devices from urDeviceGet, but the

0 commit comments

Comments
 (0)