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 3E070A04A6; Mon, 24 Jan 2022 01:10:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 443D9428F8; Mon, 24 Jan 2022 01:06:30 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 4870A428E2 for ; Mon, 24 Jan 2022 01:06:25 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id 192so10784830pfz.3 for ; Sun, 23 Jan 2022 16:06:25 -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=pmG6yMayEtiph+FrBafMWrazhYRcXID3b2Oxjkc6Zrs=; b=2aSrUwdTb7NDuZVQw60S4b3sN7MJ3P0E85CxbSRUcxq7dPKdlVKzj4ShHwH1wPtZWg 25qLGX0PGKQT0fH4/YsWf8+Pj3nN9CJSZFyh6kkuoro/BMsuV8aG3mymeXGDM/669i47 BPcU2G8NGi+/4T/+1A1/qpkRfZ6B/+aRpYCBfmX5QQJ2PP9nOrufGdGUt2VxmtQkVUGL eXIhqVQyC3kU+db9vDCMCZL8SeSPrIZ1d4AoRfWn/bfgxjFxYbIIdBat25C/FEdUfelT YOKM2LtTqV86G0O02z9VeY6VICXDjnekX2PVBuNmviOHwDv0iWnorsqXorF8zLJHmK4O TDiw== 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=pmG6yMayEtiph+FrBafMWrazhYRcXID3b2Oxjkc6Zrs=; b=XuMr9q5C+6A/Nt5qXI3s88jqKtUTCtzkxxRT0XYhVnwecNDAkM74FpzBZwDDeSSS2Z HH0axhvKhAZxWq0k11o+crfvKX8tQphfr3jnezCqUkA1QsAoveRV0s1YR5om75uJupnC vr2KrS8xrK+Y1XLsdlpZx8ticFkF5lSfmERvjkmR1gd076Gz8OUn1Rd309U3W0e4LaDr xufD9rNI6r7fnOt751olayhBRvQSATNT3gRgFqIhUzmqtJjzGbjUrSQUfRibfPwu+3pi ZdBbPtIRuEy8YMITVWEg+Q7OQQH5aYjf700kPwwKYi1EliH+laMRjDenXTrspkq+lj2N 6t5Q== X-Gm-Message-State: AOAM532GAO1mgupMGLkghqb63wx9r5vIBJt/p12Od/sEMrI7F+xURADZ 7HZ+KV67dQDp/nX6vqeyet83DYXvX5I9zA== X-Google-Smtp-Source: ABdhPJzT1daxZ+8euizAryE/8AjditbDk8fVcl73d8fnxy1dXCsKZU9ckPrjjOBIRnQ0zQMvUDbuNQ== X-Received: by 2002:a63:204a:: with SMTP id r10mr9982612pgm.502.1642982784272; Sun, 23 Jan 2022 16:06:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tetsuya Mukawa Subject: [PATCH 60/82] net/null: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:56 -0800 Message-Id: <20220124000518.319850-61-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/null/rte_eth_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index ca03469d0e6d..bb89c1abc4a2 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -717,8 +717,7 @@ rte_pmd_null_probe(struct rte_vdev_device *dev) ret = eth_dev_null_create(dev, &args); free_kvlist: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2