diff --git a/frameworks/js/jsi/src/jsi_list.cpp b/frameworks/js/jsi/src/jsi_list.cpp index 35cc91ededb22f03484381368918945571906a7f..6b74eb30dcf5e5092239e8a2822acfce95249a49 100644 --- a/frameworks/js/jsi/src/jsi_list.cpp +++ b/frameworks/js/jsi/src/jsi_list.cpp @@ -81,7 +81,6 @@ void ListDestroy(LiteAlgType type) { ObjList *obj = nullptr; ObjList *objNext = nullptr; - uint32_t i = 0; LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(obj, objNext, GetListHeader(type), ObjList, listNode) { if (obj == nullptr) { return; diff --git a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c index 612d0b22b86b566ae03dd74fee5b0e43788ed942..3b137073aaf26572df4a6d2884afc54e03dc3cfd 100644 --- a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c +++ b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c @@ -258,7 +258,7 @@ clearup: return ret; } -static HcfResult GetPaddingMode(HcfCipherSm4GeneratorSpiOpensslImpl* cipherImpl) +static int GetPaddingMode(HcfCipherSm4GeneratorSpiOpensslImpl* cipherImpl) { switch (cipherImpl->attr.paddingMode) { case HCF_ALG_NOPADDING: @@ -271,7 +271,7 @@ static HcfResult GetPaddingMode(HcfCipherSm4GeneratorSpiOpensslImpl* cipherImpl) LOGE("No Params!"); break; } - return HCF_SUCCESS; + return 0; } static HcfResult CheckParam(HcfCipherGeneratorSpi* self, enum HcfCryptoMode opMode, HcfKey* key)