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 42AE5A04A6; Mon, 24 Jan 2022 01:12:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B96BE42956; Mon, 24 Jan 2022 01:06:46 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id E33EF42942 for ; Mon, 24 Jan 2022 01:06:42 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id u10so9694981pfg.10 for ; Sun, 23 Jan 2022 16:06:42 -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=KiInXPZrusCXymjxT5rHhqr72dWr3KdKDt0AAlYKOgg=; b=GyIyRr2ulBCflb0xZF3reEG9g0Zi8UQOhWshFdnV4OtXnJW4980VZnM/zl7dgQNZe1 Wt8Ku59j3gfZLX8fra2Zx4gQ5V26rufQnrqGFifOpUOyxj+nvURZUUTVNXWyqNILI9cN rn9BbgZ50A8FZiVd2hI/mAzoVeQGEJTBUMHoYpllcHRC4TKKd9J4hMNpc9YrMV6wbO6B RC7SvfYkUJyWhJb2SB2HAc42nz3kkQZo3+/I+rsQqS09XVam6HAWYsnwkrsQr1cibt1+ D+f3tEgUeLBp2tfXBdPw+UTRahaYz596wB5A95r0w+8FAv+arGtkOejrgPruajJsAGJN DbbA== 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=KiInXPZrusCXymjxT5rHhqr72dWr3KdKDt0AAlYKOgg=; b=WijOU5ewlrGIAInrMZWbHuM/VE/rUXteshbJ1u766pC02s0WPBErI5hiONo4UOrEm8 8LqW3BQROyITi5mIbhh1itUcFEiZU7tuVl3ACiNfP1pq/rjDRbM0B8D9hefEgsqiOYcv azSaMDf4oQxRPn8JN8avHnAECcb6K1Z+ClnpkWHuu4BIk+oDUpjttF13sQU5IMQuw11v 2QTZyu56ZmmhHDxQUr3iPhBuaDm2c8UdJe6Qh0ya/izO0kO5tN3RcaYHQkj8SfMyDTEE bHOxIxpn3ho9X7jF4AXhZOPOphwYd8NYs6/5QiCXU3/tD1WXvF5evL8336nazVzb/Zg2 bnrw== X-Gm-Message-State: AOAM533xeO94i4QryxSBgoB1oYPaRtJsbbZhV0/odu150B9KpG5rn4LF RK6NMT9SxVe9xOzSp7yRdHt7kzxO2rUofQ== X-Google-Smtp-Source: ABdhPJwXiahiXQrrfo1Xi50zfh3QiZ3dOrFfy1174VT6rmq3PwlB1fHl03aI4U8ssq0hX+YhiBEcOw== X-Received: by 2002:aa7:914a:0:b0:4c6:c181:5251 with SMTP id 10-20020aa7914a000000b004c6c1815251mr12140812pfi.41.1642982801941; Sun, 23 Jan 2022 16:06:41 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:41 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Subject: [PATCH 77/82] ethdev: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:13 -0800 Message-Id: <20220124000518.319850-78-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 --- 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 a1d475a29295..98312fa157f6 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.30.2