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 2EDDFA04A6; Mon, 24 Jan 2022 01:06:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CB1B427D6; Mon, 24 Jan 2022 01:05:31 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 91E1B427C7 for ; Mon, 24 Jan 2022 01:05:28 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id d15-20020a17090a110f00b001b4e7d27474so14837709pja.2 for ; Sun, 23 Jan 2022 16:05:28 -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=LthoC/aG80CawrgBqgZJqzxV3JgQQrhY5x+zkNuvJwE=; b=C1oKNPtb27Igm7T4DTkVAsM6JHKtvCV19uwFNiEdJBWVBjBzv+JCUNiKFofV64zrtm AIZLiwt13s+TdS1bLm4y5LjTR28g401Ee/aBgVEJEOY+LopuUfa91W4PijvCaGO63iXQ ONQTwy7bukGDfXmqZ78HlOZGfxAaqAZuCU7308X6ZFoqZ2pI/P5dhmAuZiPX2s9z1lxk mejEyvKMXq58eO7y9vJm8CEbYm8YNZ6YPBw+DVhqa+vlTsPjBI5d/d/Kb9h9AwJojPLZ lCwWPZmpEsZRbB8+ThJYKU/9IYgrOvdpjOtaMpCTav4kKpPZ2JZVfqQKuO4c54A+XLeo xJOw== 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=LthoC/aG80CawrgBqgZJqzxV3JgQQrhY5x+zkNuvJwE=; b=gzL9shNwuH3hPZQJdLmvMY+Tv6eWKPpDS+HXrfhCxOmdOv9hqiPZzNerxXYO91ehzj j8DVoMHDL5gLjtXeJlbuxw0IzZaAX91w0qOiwgDWDokST74lIGJlIq1xgQKHTcl8HBe8 g1UlwomjRvwj+UtD/8uQfUo/6CQMZbEZ+2iqHUT9CUAbiB/4sfwICD569alA0qlSukJX pGCnrxcvZhfZh2FeweSWrzxpY7IrB+C3441Il1V7gF684NydhtoTZcl4LyzBcSCWrfSd IzjREPq+Q9JXQrDSV2iHginFcTsJqES5CT8+xUwIqasRASYx0V4zphrVlkfyCQXcJ8Dd chnQ== X-Gm-Message-State: AOAM531uN/qDI1nLNddA7nqrAl+6NLwgz7GIfy70Q0iuVSVGvtYqrb5B QR2wpNm6Y4XEABxuXaGC9Q7kn7gvVseQPQ== X-Google-Smtp-Source: ABdhPJwmQNEz7tXkm2zr+HwcKxj6CRRLDBzq56t7NzIgLzsCALMpWQN/m5/wRnB52kZoxsLE3VImcA== X-Received: by 2002:a17:902:8649:b0:149:f37a:9255 with SMTP id y9-20020a170902864900b00149f37a9255mr12510497plt.116.1642982727627; Sun, 23 Jan 2022 16:05:27 -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.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 06/82] examples/pipeline/thread: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:02 -0800 Message-Id: <20220124000518.319850-7-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 --- examples/pipeline/thread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/pipeline/thread.c b/examples/pipeline/thread.c index bf11e6144b75..5fe7eae00eb6 100644 --- a/examples/pipeline/thread.c +++ b/examples/pipeline/thread.c @@ -89,11 +89,9 @@ thread_free(void) continue; /* MSGQs */ - if (t->msgq_req) - rte_ring_free(t->msgq_req); + rte_ring_free(t->msgq_req); - if (t->msgq_rsp) - rte_ring_free(t->msgq_rsp); + rte_ring_free(t->msgq_rsp); } } -- 2.30.2