diff options
author | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-05-17 08:42:28 +0000 |
---|---|---|
committer | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-05-17 08:59:14 +0000 |
commit | f15c615e79eb13c7457288e79b8a906bc68dfa1a (patch) | |
tree | acbe3a1ade112157aec60d57579f939ecb08a92f /src/core/CL/OpenCL.cpp | |
parent | bea74cada64a38516eade9da7000588602df3dc5 (diff) | |
download | ComputeLibrary-f15c615e79eb13c7457288e79b8a906bc68dfa1a.tar.gz |
Revert "Check for nullptr when failing to load OpenCL libraries"
This reverts commit 9d254610ef3072263ac5c20eed906157e8869b3d.
Reason for revert: Causing High Impact failure in Coverity
Change-Id: I7a3b963cc13c0eea856a15451ffed8c4d4a62e75
Signed-off-by: Omar Al Khatib <omar.alkhatib@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9643
Reviewed-by: SiCong Li <sicong.li@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: SiCong Li <sicong.li@arm.com>
Diffstat (limited to 'src/core/CL/OpenCL.cpp')
-rw-r--r-- | src/core/CL/OpenCL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/OpenCL.cpp b/src/core/CL/OpenCL.cpp index 6a951a6309..8aa9b2bc1e 100644 --- a/src/core/CL/OpenCL.cpp +++ b/src/core/CL/OpenCL.cpp @@ -107,7 +107,7 @@ bool CLSymbols::load(const std::vector<std::string> &libraries_filenames, bool u break; } } - if(handle == nullptr) + if(index == libraries_filenames.size()) { // Set status of loading to failed _loaded.second = false; |