From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 22321A0353; Mon, 28 Feb 2022 17:06:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2A834068C; Mon, 28 Feb 2022 17:06:03 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 19F3640140 for ; Mon, 28 Feb 2022 17:06:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646064363; x=1677600363; h=from:to:cc:subject:date:message-id; bh=cmnOt+LtRFTnYSVAWSHDKG0MWdwyQNu+pT5DbE5+HA0=; b=Pl84Qnua9ndF0XZ8r+VG0zsyxNaS8bD2kylF4Xzud583NlE7tbFz99ps tjGrZrHZR7W8UGy6j1PUACwoWHQSnFxsha+O3K0EelkjCBoGVjCz63kEr 0bhbipPnbwA/M7Dod5N9hDJLMESyBaw4SOEnzMeqLisNHTPHrQu4m1KJ9 CBmvgk7b2UvlFBUuQIbuheoU6DP/vJcZ4hs9HNC+DpuXfjEnANqtxve3Y SBCG5epcyoElY+8HFjJ/ah4ipDVqW8vSua5e9vefHjHSpUb+YxeaFODox MtIB7L5x/OU/Ndyn9xNOfObCF0i/aOOBkepCuL0gHlTdo4tRIj8vnKsi/ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="240326393" X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="240326393" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 08:06:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="685384377" Received: from silpixa00400308.ir.intel.com ([10.237.214.95]) by fmsmga001.fm.intel.com with ESMTP; 28 Feb 2022 08:05:59 -0800 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH] crypto/qat: fix structurally dead code Date: Mon, 28 Feb 2022 16:05:55 +0000 Message-Id: <20220228160555.24926-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch fixes structurally dead code in QAT asym pmd. Coverity issue: 376563 Fixes: ef2f4238a04d ("crypto/qat: refactor asymmetric session") Signed-off-by: Arek Kusztal --- drivers/crypto/qat/qat_asym.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c index badf018f13..1e4304a3c0 100644 --- a/drivers/crypto/qat/qat_asym.c +++ b/drivers/crypto/qat/qat_asym.c @@ -1183,7 +1183,6 @@ session_clear_modinv(struct rte_crypto_modinv_xform *modinv) static void session_clear_rsa(struct rte_crypto_rsa_xform *rsa) { - return; memset(rsa->n.data, 0, rsa->n.length); rte_free(rsa->n.data); memset(rsa->e.data, 0, rsa->e.length); -- 2.13.6