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 A0086A04AD; Mon, 24 Jan 2022 18:54:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A03DD42991; Mon, 24 Jan 2022 18:48:54 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 7036F429B1 for ; Mon, 24 Jan 2022 18:48:47 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d7so16302666plr.12 for ; Mon, 24 Jan 2022 09:48:47 -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=gkiqaqZyXYBz+RJmQmok02O/3H3Uo4QZDgy5TxOh/ona4FyBMuRDaiyUi5OV3AALYc Shkm5VINUwM/kUP3SnGyCrbgycOrvaORdL8dDTr0LdXucBDoRP8zgHnQNxX0rch/Qee0 oX2L0xYeM8fmhOWpJXfa9veRA9rB4Uv0xAWIquqiktw5LJ7xeU3csVZzalFIEqKTdC6R oZhiMtsxYUDjdyh+V3QbDK+81m7MBs5FIwHtFqcBp1QbykxqkE0DxemDzvV52iOhbBac L6K7Am453yhXoqwQnZ5OacDxdJYrQvb9A63HcbrHraoQKFTzYwUClihHCUTrMoM1ynwj yw1g== 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=qve45hrMtEk/Ot2xoGPCl2ktXcMf3esEAnpaMBg31wkK+9qHufoPfh2/XxiI0WBOHs zWpiYfF9T1NheB5nDfHH/T63OyqRoRq96aTpgXTnJGkL5FIyoSIQ6I/L16+Inhav5yfe YFxP0bUIQzOPg+pHlG2l/Ben3bd1SqRIPh7dypVtZWp/hlyVQzfAGgMrFqlfVGWTuf/R +C8B+5UFlfpZQipIJJO1RCyPcd0el7vYiRKoShEGSkTPC0plx3XG8+5C0Jhnf1wpD3hn pJvuCNmzQ4qwEo2ZLXLp9LU9sUWmXC85t7U69O5mxsdhSI4MjC663k8zNKto27lfkdUP 3Tsw== X-Gm-Message-State: AOAM531hRN9MZF6p6H5O5aBWG5OKOUZ6akgWABpX9dPrMpIpCV69cjev FZE5unmQ0BjroRf+mv7RCEhUz4clzF+XdA== X-Google-Smtp-Source: ABdhPJxh9uBMuG1G20wI6aUNBL7iJrZS4/m4wp6TxfE7d2YFkHdeUHrsO6iRGqCUrY/DsS+LOjS6aQ== X-Received: by 2002:a17:902:bd05:b0:148:a2f7:9d87 with SMTP id p5-20020a170902bd0500b00148a2f79d87mr15320384pls.166.1643046526550; Mon, 24 Jan 2022 09:48:46 -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.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:46 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Subject: [PATCH v2 78/83] ethdev: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:47:14 -0800 Message-Id: <20220124174719.14417-79-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 --- 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