Skip to content

Commit 198b7c2

Browse files
committed
[Loader] Remove comparison with no effect
1 parent 5fe75aa commit 198b7c2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source/loader/ur_lib.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
224224
if (!hPlatform) {
225225
return UR_RESULT_ERROR_INVALID_NULL_HANDLE;
226226
}
227-
// NumEntries is max number of devices wanted by the caller (max usable length of phDevices)
228-
if (NumEntries < 0) {
229-
return UR_RESULT_ERROR_INVALID_SIZE;
230-
}
231227
if (NumEntries > 0 && !phDevices) {
232228
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
233229
}

0 commit comments

Comments
 (0)