Skip to content

Commit 673f6e6

Browse files
authored
[UR] Fix unnecessary check in async alloc extension (#17686)
This null pointer check is already performed as the parameter isn't marked optional, so we don't need to manually specify it.
1 parent c040f9a commit 673f6e6

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

unified-runtime/include/ur_api.h

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unified-runtime/scripts/core/exp-async-alloc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,6 @@ params:
392392
returns:
393393
- $X_RESULT_ERROR_UNSUPPORTED_ENUMERATION:
394394
- "If `propName` is not supported by the adapter."
395-
- $X_RESULT_ERROR_INVALID_NULL_POINTER:
396-
- "`pPropValue == NULL`"
397395
- $X_RESULT_ERROR_UNSUPPORTED_FEATURE:
398396
- "If any device associated with `hContext` reports `false` for $X_DEVICE_INFO_USM_POOL_SUPPORT"
399397
- $X_RESULT_ERROR_INVALID_DEVICE

unified-runtime/source/loader/layers/validation/ur_valddi.cpp

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unified-runtime/source/loader/ur_libapi.cpp

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unified-runtime/source/ur_api.cpp

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)