From 3d425a28ed76877bb4cccb1ef85d145d7b5c85fd Mon Sep 17 00:00:00 2001 From: Andrei Menzopol Date: Mon, 5 Feb 2024 08:25:26 -0800 Subject: [PATCH] [K32W1] Fix lints Signed-off-by: Andrei Menzopol --- .../nxp/k32w/k32w1/K32W1PersistentStorageOpKeystore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/nxp/k32w/k32w1/K32W1PersistentStorageOpKeystore.cpp b/src/platform/nxp/k32w/k32w1/K32W1PersistentStorageOpKeystore.cpp index 8f52c2ab620549..a3a4a480430979 100644 --- a/src/platform/nxp/k32w/k32w1/K32W1PersistentStorageOpKeystore.cpp +++ b/src/platform/nxp/k32w/k32w1/K32W1PersistentStorageOpKeystore.cpp @@ -64,12 +64,12 @@ CHIP_ERROR P256KeypairSSS::ImportBlob(P256SerializedKeypairSSS & input) if (false == mInitialized) { auto res = sss_sscp_key_object_init(keypair, &g_keyStore); - VerifyOrExit(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL); + VerifyOrReturnError(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL); /* Allocate key handle */ res = sss_sscp_key_object_allocate_handle(keypair, 0x0u, kSSS_KeyPart_Pair, kSSS_CipherType_EC_NIST_P, 3 * kP256_PrivateKey_Length, SSS_KEYPROP_OPERATION_ASYM); - VerifyOrExit(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL); + VerifyOrReturnError(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL); } VerifyOrExit((sss_sscp_key_store_import_key(&g_keyStore, keypair, input.Bytes(), input.Length(), kP256_PrivateKey_Length * 8,