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 71F53A034E; Wed, 9 Feb 2022 20:18:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C5F64116D; Wed, 9 Feb 2022 20:17:59 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 23A6041157 for ; Wed, 9 Feb 2022 20:17:57 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d187so5942728pfa.10 for ; Wed, 09 Feb 2022 11:17:57 -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=1f2XqDv0SD51X06ah56lNa+Mm3KQ/Xo98BuVRl1ApNY=; b=5w8+WiSl92iAdz8ZTpj8UBDiGyrrdCwaFAZDtRKr4IsyBHRLuA3bLxQCe4IpncI3Ud 0/URg7wsG087+GpgrM8XqODR4D3iTZX+Si1YGtUaX6xk5Dp1M43LqWAaw+Q1k05iAWJz 98npJzB3EuIJlw6QHXszHbPzR8+bW/m05wFmm3pJvxjg0eG/hwjMwJnNMnAsHqLTwUgT 0eQUppF27TRUa7CcqgZYxnD+h5bUZYFsrThsdBuqYrYyopu4HSF0c2yqBgfm6VbqWea+ ysrPOuPJIWVvV2SZ4AvqTBFbf742lFfT6heby0Xzn+3XevSwjFIb/70j5KH4Go3wy8Jb AuzA== 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=1f2XqDv0SD51X06ah56lNa+Mm3KQ/Xo98BuVRl1ApNY=; b=3uhAdrpFhP9P/jCkJqTKw8onw/saZDB3E98FDoeodF4Di9Ltiw1JR4NrCiF0ILbjWJ KcneJJ/wjkxdj4VD3+bOUFlygBGSsd+Ms6PzvH1worGjC6yUAbPluquHhHH7T96/KTnA 4BTgY2xVmDKCzff+HHT6Ipc/9upUUul6/BosPC8avoFHp1TQxfXr+SIk8vDHBnPUgwCl xhUwWk0Mj6Euw/S+0AtnFDJS5oFfeFeZhB1Ytm1Tjm53+wlH3B5JXGuC3nUCRN7b22zs 1j0JjHzIvdw/0nGhpeCd4dV4+fq/BFYinLx7hSNKgyxvfRwT8ORzjMAKBs8DlUI1/IJS xxAg== X-Gm-Message-State: AOAM532M1fMkGKyuV8DGEFe8B13u1sliOTpcwisdOIHviuqvoJrljxK6 r8O0PqPnLWn7us/8zOft5L4ESpJKaovjiIlY X-Google-Smtp-Source: ABdhPJx4edJQKGOr/p9/dRR3Dr8dbReu3tpIcnelkYpGccwkvJ4DeDefQMC8/kx5x7ZiM9G6XfQOaA== X-Received: by 2002:a65:4886:: with SMTP id n6mr3040740pgs.515.1644434276116; Wed, 09 Feb 2022 11:17:56 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id u16sm14378401pgh.54.2022.02.09.11.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:17:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Subject: [PATCH v3 04/36] ethdev: remove unnecessary NULL checks Date: Wed, 9 Feb 2022 11:17:16 -0800 Message-Id: <20220209191748.377729-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220209191748.377729-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> <20220209191748.377729-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 --- lib/ethdev/rte_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 29e21ad58003..cab7b7947eb7 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -6036,8 +6036,7 @@ rte_eth_devargs_parse(const char *dargs, struct rte_eth_devargs *eth_da) } parse_cleanup: - if (args.str) - free(args.str); + free(args.str); return result; } -- 2.34.1