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 E12C8A04A6; Mon, 24 Jan 2022 01:08:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 914C942875; Mon, 24 Jan 2022 01:06:01 +0100 (CET) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id 1B1D942860 for ; Mon, 24 Jan 2022 01:05:58 +0100 (CET) Received: by mail-pj1-f53.google.com with SMTP id my12-20020a17090b4c8c00b001b528ba1cd7so9830486pjb.1 for ; Sun, 23 Jan 2022 16:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tcc+pf7RWRS9XlLi6yUpiW4SL86hMusm5V+NE97dykY=; b=GByoc0kLDdooGe3aBMTnPmOfONOQccnzb5ZSbf0Fk6VibLGy3vxF1CoIqJpfL0zgSs l24mftkcpjMeqT0WhUXk7BU+zJLAZh4iCZBn/iA/YzDyLA6Lbo7hEmYt+INCXlOtQ2sG kUwrm9/pgRJ6EF2c1Qx7XEF9wShQXgHhGaLFkFohq62RIdQhQCncPH0lsIDEVhgn/C5i vX3zg0k/l0txb/Tqcb2OwWR1Bwpr5MfhtWnuJKS1qSpGeEr7yejBYKOmRRHatgfrDiTR G27J+fHMtFVdrYTD2lGyCXzyF5Vk+iNwq3KpIi+pAOY2RMvOlL6WvTNc6DEzqMLETo7h LlWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tcc+pf7RWRS9XlLi6yUpiW4SL86hMusm5V+NE97dykY=; b=vI24lleT7nyJKWZz1pfnJd/OIbQ+YwXuiUDd8bM1GNDBIYYm5gG8X0rWqVwzq0D2cY 4iOL1lD85u+RpVGYfoiP/oL4u/uOWyyg6Jhp8NyUazW5iadgAxKJTvSya0M7FPTyPUV8 J7R17qG2WQQtsrsEC+KFU9Uu2uH1fIQ2z+5GGyEgENtHFoJT9cGFRsEfo6AzwmkQKtVR gsgcC5Du/sP96nKanQt0E8noolhW4q+cFxCgQM2rOit6JJPLR6PflIYVU/9Y48Zzs43W tHjqZw6VtUnWJSI+Hn/eNsDGMqNP67VVCxhJBpT0RllnhN6Fo/c460bay2r337lXOMSc 7QVQ== X-Gm-Message-State: AOAM532RSESSDiiq+X/qX+x4d14cY1rry+rqRLWDuksMvNHIoB8zXX8u n7LBagdWqOcgKdEvsC/BxQj9zIzUJ8r6Ig== X-Google-Smtp-Source: ABdhPJwmfCplkgyOdJcQXiwNN7FeMIm/Vlse9cIkQJUgXM+G3+goHVAbwVnomM6JhmrQMr7TZIpF/g== X-Received: by 2002:a17:902:c40d:b0:14a:96a4:1044 with SMTP id k13-20020a170902c40d00b0014a96a41044mr12548353plk.50.1642982757040; Sun, 23 Jan 2022 16:05:57 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id ck21sm10935350pjb.51.2022.01.23.16.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anoob Joseph Subject: [PATCH 34/82] crypto/octeontx: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:30 -0800 Message-Id: <20220124000518.319850-35-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124000518.319850-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Remove redundant NULL pointer checks before free functions found by nullfree.cocci Signed-off-by: Stephen Hemminger --- drivers/crypto/octeontx/otx_cryptodev_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/octeontx/otx_cryptodev_ops.c b/drivers/crypto/octeontx/otx_cryptodev_ops.c index f7ca8a8a8e90..f1aae481c3c6 100644 --- a/drivers/crypto/octeontx/otx_cryptodev_ops.c +++ b/drivers/crypto/octeontx/otx_cryptodev_ops.c @@ -335,8 +335,7 @@ sym_session_clear(int driver_id, struct rte_cryptodev_sym_session *sess) misc = priv; ctx = SESS_PRIV(misc); - if (ctx->auth_key != NULL) - rte_free(ctx->auth_key); + rte_free(ctx->auth_key); memset(priv, 0, cpt_get_session_size()); -- 2.30.2