From 81f378a8b8332c7c807f3fa39f1b23899e843f93 Mon Sep 17 00:00:00 2001 From: Richard Wells Date: Fri, 8 Nov 2024 17:20:59 +0000 Subject: [PATCH] Use CHECK_POINTERS for null pointer checks in NEON sum. --- kleidicv/src/arithmetics/sum_neon.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kleidicv/src/arithmetics/sum_neon.cpp b/kleidicv/src/arithmetics/sum_neon.cpp index f9cbd2757..9021d0bac 100644 --- a/kleidicv/src/arithmetics/sum_neon.cpp +++ b/kleidicv/src/arithmetics/sum_neon.cpp @@ -28,11 +28,9 @@ class Sum final : public UnrollTwice { template kleidicv_error_t sum(const ScalarType *src, size_t src_stride, size_t width, size_t height, ScalarType *sum) { + CHECK_POINTERS(sum); CHECK_POINTER_AND_STRIDE(src, src_stride, height); CHECK_IMAGE_SIZE(width, height); - if (sum == nullptr) { - return KLEIDICV_ERROR_NULL_POINTER; - } Rectangle rect{width, height}; Rows src_rows{src, src_stride}; -- GitLab