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 D6221A04AD; Mon, 24 Jan 2022 18:50:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32073428BE; Mon, 24 Jan 2022 18:48:05 +0100 (CET) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 2FAB4428B0 for ; Mon, 24 Jan 2022 18:48:01 +0100 (CET) Received: by mail-pj1-f49.google.com with SMTP id h20-20020a17090adb9400b001b518bf99ffso13902692pjv.1 for ; Mon, 24 Jan 2022 09:48:01 -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=d8hMxypFgnYHAkFLVmpkuOVStLxyJ9UL1/cZbQZaG+LY6O9C/yLTyyjmEwV0UohE98 UOmAyXXcnUd4PDvtv8ihtaPsjs5YYyg0f9ZAPSGqT5VgPIXLfeqs2lI7MkXhUEGfJXJp fibxQ9Tbzhlq5KXV76j5zw5exHenZ09e7bVpkc+EWVJge1aWuRb/bdLk/c2dNI9SUEaz 57kkxby0OZZRGspAY3pZ6yQrryYc/tefHVVGfD/1j9Ft8maqIsUGCCYSm7vRn0SCY4sE jtFRUdOqNurCHjbZ+phB7+Bb8Cx1ZqTveErOGFH5azfhd6Ufw5nL72yGFsfM4/BfBU7q vY5Q== 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=cCi0RgNc5OMmXsRv8h73hL4Lqv0sELF4aPIT6Z4g1daa6FlW5PKH4ySWulX5joaX4U xz2PyMVzXEfUTCdVuB/FF2tqEDwgQdRI0TzCf2gEO4AxmKnFkd1261BVoTwH3djje5qv QTJSLvv2PfpL/DQcOfv/P3DGA7Ff2EusSyFa2bGhTY+/D7a5T9jgEwOTST4hCmcZKl4E NT1igo9D1FmHWw5jeD/pBPlC34G4zoR9x3Gr2bWIzmKKuwFnFLBS4tTmFPoHBhuqrba5 QeOIUOyYx6acWJGegDfzYe4qrQzXC3XWgiFXD733u2fwYJ1NJa7GZnwRqeiVcUgVFcnb +JqA== X-Gm-Message-State: AOAM532GkSHzcLXCFUpZlEJ6ZuWmjV4CKd0GdL+xL+2E/bldkcjR5y17 Jg/hF4PGfv2uB337feuf/bTpcdrQH5CEfw== X-Google-Smtp-Source: ABdhPJyFuJMmRoyFDBNMHjDcwhldRhx8xXUXaz5d9dvlB1t6PTUIwHKtFvPv6Sm/YHV0GZMQ61amww== X-Received: by 2002:a17:902:c213:b0:14a:f05e:278 with SMTP id 19-20020a170902c21300b0014af05e0278mr15461034pll.133.1643046480014; Mon, 24 Jan 2022 09:48:00 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id q7sm15835082pfs.37.2022.01.24.09.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:47:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anoob Joseph Subject: [PATCH v2 35/83] crypto/octeontx: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:31 -0800 Message-Id: <20220124174719.14417-36-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124174719.14417-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> <20220124174719.14417-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