From: Weili Qian <qianweili@huawei.com> warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]. Signed-off-by: Weili Qian <qianweili@huawei.com> --- src/uadk_prov_sm2_kmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uadk_prov_sm2_kmgmt.c b/src/uadk_prov_sm2_kmgmt.c index 22871e6..1791cdd 100644 --- a/src/uadk_prov_sm2_kmgmt.c +++ b/src/uadk_prov_sm2_kmgmt.c @@ -471,7 +471,7 @@ static void *uadk_keymgmt_sm2_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cba } /* If there is no need to generate the private and public keys, return directly. */ - if (!gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) + if (!(gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) return ec; ret = uadk_prov_keymgmt_get_support_state(KEYMGMT_SM2); -- 2.43.0