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 9E6E2A04A6; Mon, 24 Jan 2022 01:09:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C349428AD; Mon, 24 Jan 2022 01:06:10 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 9228242890 for ; Mon, 24 Jan 2022 01:06:06 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id 128so14218796pfe.12 for ; Sun, 23 Jan 2022 16:06:06 -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=zkr0ICvLVL2t/HP9KwQdbKbxig7p/kOYPIjwjT/68u8=; b=RNi3fmxujnuBoRUQ3SYV9fJWG4t0bUlxKeLDLI86g7vfj+7x7nGNUwGqrBmkYy4eWu r8Pb2KtAhKC2Sl8Yg8SHc2g72HFSQTaNBk6OxpCgKi5/UUcYGTsNMUOn3M/maGimBcSF Sd7KUf9S/D2333sSpYjONoJGeSFh7w2I0PlptgQuyBjxNNI0qzkGv0BpeNLuGoPYt56i cAlP/eqdFzqB0RKlpENRHBW7iBJVKObM1AHIlBV2FzfVHYKTE2Wjx4nok0ZGsiwYNAv4 Q1S6JiplGWEdxK6pkJRCCcxlFlZscSBB1ul0+p1DivIRyteY08NqOqtbgKP15OLITdzf 2vCA== 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=zkr0ICvLVL2t/HP9KwQdbKbxig7p/kOYPIjwjT/68u8=; b=zVgjv0l/FR1Z/EWxMAzyNgfa9mz7XlExQzivYKiiNveKeIFzESvxoNNhClf7M27taQ 0sHP5r3mhp5o/kMXN01Ug/M/SmOWrqqV438h0ohVltWcQj3ylUa5Q0+SpCpjadLEeGi8 VAwExcvzekTkC4ir7N7ouJUy5MN0lw/k6lm2frhozyzO6rCBjBNLt9B8ur39Jg9PRFsv l74yDkmHLWPnHQ6lCSbwZyXTO3bi8m2He/EAQ6VbVhtkWHf5OHd12sBt93+fi9pud821 /NLWtghccfBOqqzfRkntxWt+OpEUjFm0aVZWqpfUwiJcVMPab5KSRMv5orWIBz4nO0Je L/HA== X-Gm-Message-State: AOAM5318LkvHojiXX2gIsoX1D/UkCnzDesgTo61/HKUUvMbEjfYLt015 oGtiaiCsjM3JyH/A5w5NGhkMNih69HNDYw== X-Google-Smtp-Source: ABdhPJwHUqe5E6Re6nuH6mFnrfPvmKEC+y9QphmSDKO4KhdqJxoIyfkjO5GFDNqsQSrSP0gI/+sh6g== X-Received: by 2002:a65:6705:: with SMTP id u5mr1272806pgf.158.1642982765562; Sun, 23 Jan 2022 16:06:05 -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.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chas Williams , "Min Hu (Connor)" Subject: [PATCH 42/82] net/bonding: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:38 -0800 Message-Id: <20220124000518.319850-43-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/net/bonding/rte_eth_bond_pmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 84f4900ee52c..963280828a65 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -2148,8 +2148,7 @@ bond_ethdev_close(struct rte_eth_dev *dev) */ rte_mempool_free(internals->mode6.mempool); - if (internals->kvlist != NULL) - rte_kvargs_free(internals->kvlist); + rte_kvargs_free(internals->kvlist); return 0; } -- 2.30.2