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 0754EA04AD; Mon, 24 Jan 2022 18:50:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D60342899; Mon, 24 Jan 2022 18:47:58 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id E78324288B for ; Mon, 24 Jan 2022 18:47:54 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id l24-20020a17090aec1800b001b55738f633so192626pjy.1 for ; Mon, 24 Jan 2022 09:47:54 -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=Jok0KdFIe54UoJ7kfxWK/vLV88tonlqArUwM2oEm2eA=; b=Fl/PJID25Uyfj61bhGC2ZU5cZg2L1xh37j4X3PKkBrQvDAE92VHf14aOSLz27KrzMs L+FkwZeUstMKcS1M89yuSYvGV5hqfalemHfHU2Dm0NCweP1RnSS77ydSsu4MepfFBaXn GrdmA2FwDX+px3WuTF97xsq8bPhWwVHogXYiFPAZFiUkP27iH17BXyD3ya4ZPMm0knqk i8J6trMEDue4NGr9gIaruEZ4Gf4DN2oMkVmhO6v3AcmHdIMikpdUl5CvTJj+8eKBNaM2 1ZcKIrurTSUNZNJ9wc4AdqVBn05ZsDOFujYRNVCFCoElDkCtttrsoEyu/m/Wab3QzCKw nOmA== 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=Jok0KdFIe54UoJ7kfxWK/vLV88tonlqArUwM2oEm2eA=; b=Kxu/PqCg9z8d2KzDXWd+9Lu2PoceI0WS+wEkCfhXSzijWBOHEBm+4oPycG117MKyvw TLovJ34LB4rZtHlcly14es1NYI2XAZrfkz2OF02HtAwGItn4QY+66GFewXRhtSRBLJOh v+CvuaJO2hhvJZXX+JKRkWVGvHUfhan7hruIu1XkyO6f7dOdzLNn74aKMHgW46kTDDVJ ovpPt/Y/siG6tceyUkGTbyB4P6iUQgC/BAZdSuopwrCqJR7rAQ0aQl73BrgdUXHN8sqW 5Be+mVFqNVBBqQjrz4//Q/nOXrXG++IdQisO8W4AniryFW69wSwdXGQuEuWMTRWTyxfF EhWA== X-Gm-Message-State: AOAM530Q/R7/bw68QZnVcvnjZaLcp6VuXglPTCIicaKufVXzgd4/trDh VPaBlyO1XZ/6dh0JOTzSNfQhQR/H40DdZw== X-Google-Smtp-Source: ABdhPJztW2CFjaZj3Lf9hYDRH4kahoFpApTmhBF2U/PFEKX/DCckVIfeRDOOLbWFeiYoqpCy0zFWLQ== X-Received: by 2002:a17:902:ce8e:b0:14b:3589:6c30 with SMTP id f14-20020a170902ce8e00b0014b35896c30mr9563978plg.61.1643046473916; Mon, 24 Jan 2022 09:47:53 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:47:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ruifeng Wang Subject: [PATCH v2 29/83] crypto/armv8: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:46:25 -0800 Message-Id: <20220124174719.14417-30-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 Acked-by: Ruifeng Wang --- drivers/crypto/armv8/rte_armv8_pmd_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c index 1b2749fe62c6..c07ac0489e57 100644 --- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c +++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c @@ -251,8 +251,7 @@ armv8_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id, return 0; qp_setup_cleanup: - if (qp) - rte_free(qp); + rte_free(qp); return -1; } -- 2.30.2