From 7ccd5d40e4540e2a2ef1b24686a8128fe6c6d2ff 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"); }