Skip to content

Commit a76254e

Browse files
authored
Merge pull request #1646 from ldrumm/cleanup/unecessary-ternary
[NFC] Remove redundant ternary operation
2 parents ca9ae22 + 5eaf6a9 commit a76254e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/adapters/opencl/usm.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ usmDescToCLMemProperties(const ur_base_desc_t *Desc,
6868
return UR_RESULT_ERROR_INVALID_VALUE;
6969
}
7070

71-
Next = Next->pNext ? static_cast<const ur_base_desc_t *>(Next->pNext)
72-
: nullptr;
71+
Next = static_cast<const ur_base_desc_t *>(Next->pNext);
7372
} while (Next);
7473

7574
if (AllocFlags) {

0 commit comments

Comments
 (0)