Skip to content

Commit 7f81531

Browse files
committed
fix wrong logic
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 7a49b7c commit 7f81531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/unified_runtime/pi2ur.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ inline pi_result piPlatformsGet(pi_uint32 num_entries, pi_platform *platforms,
5959
uint32_t Count = num_entries;
6060
auto phPlatforms = reinterpret_cast<zer_platform_handle_t *>(platforms);
6161
HANDLE_ERRORS(zerPlatformGet(&Count, phPlatforms));
62-
if (*num_platforms) {
62+
if (num_platforms) {
6363
*num_platforms = Count;
6464
}
6565
return PI_SUCCESS;

0 commit comments

Comments
 (0)