From 5e50805d42fd3278f0b57db2f580e430c7227a46 Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Mon, 3 Apr 2023 03:05:07 +0800 Subject: [PATCH] change return type (#25873) --- src/platform/Ameba/KeyValueStoreManagerImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/Ameba/KeyValueStoreManagerImpl.cpp b/src/platform/Ameba/KeyValueStoreManagerImpl.cpp index 897f42c167202f..1fede31febb7c1 100644 --- a/src/platform/Ameba/KeyValueStoreManagerImpl.cpp +++ b/src/platform/Ameba/KeyValueStoreManagerImpl.cpp @@ -94,7 +94,7 @@ CHIP_ERROR KeyValueStoreManagerImpl::_Put(const char * key, const void * value, if (checkExist(key, key)) { ret = deleteKey(key, key); - if (TRUE != ret) + if (ret != 0) { ChipLogError(DeviceLayer, "Warning, KVS leakage, failed to remove old kvs value"); }