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 9AF4DA04AD; Mon, 24 Jan 2022 18:53:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A26B4298B; Mon, 24 Jan 2022 18:48:40 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id CF4E142979 for ; Mon, 24 Jan 2022 18:48:37 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d1so16305211plh.10 for ; Mon, 24 Jan 2022 09:48:37 -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=GlREKbjXyKAwHax47U0uz3XIHjJfrZMl9DEn8u7nkFU=; b=Q6w0PO9wi10sk2WyvZNR9ESTdUJutVDmao0QyL43tDGLClrQGPaVwZ9o0NYPPzcFjG QchYBaJB0W1r7vRmvaLMyj89nbVUJJVLC9ggk8BC+9JogrSNu7AqHyqbyQ8qV4mD6534 c+Jp7GJYfBURiOs/KGgJVyY7zYGXfyl07E6GERrE/3DN6xUkAKV3GXVN3usBFisWxIYr qt7SPg3Xn6NsWFh78n2dnc60hpc5ZlafxprPK+hUxBcmFjFebQ7ipbnNdEbrX6Dedcyp 7rFzEEfusU2TFXyu7Pvruyj+e7o7FioX4TwVkOi/LRmBTvDDVFOpvOvxlYXBAfbNX79N 2MJQ== 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=GlREKbjXyKAwHax47U0uz3XIHjJfrZMl9DEn8u7nkFU=; b=bg2viaVYXSaG4q3qvBBy5XWdxXrLZZkC4n1ajbiqjh6d12YqpYIbMgdoUSPFIajDes sadS3wyRI+NZ84EbuQ+tM169Ayomn8s1P8SnKvAJJofvqYCi4yRXmt8a25GIuo0jybZc enm8GkZl+JsCbG7D4K8vnJpbaedMAOoIB++3uuv3Is1Jthgkvb4Fc0ecoAQ+XCJf0Jrl vkoZlJxnVP3uWHZ1xtG3FEYFv75zDoZFor6e78Eg150NMxsqBvXwk7HnbEceUzMyTtZ4 m9rhzmmRFuCKl9CkReeQk7JvibiirFVPH1A8v+nHzpYNFd9SDnldUoaGiZV6giahMVhj JAjA== X-Gm-Message-State: AOAM530cf4tnCWukBaAB4lPqKdSLS71aecUgrUwUruuTAQ69f2GZeGIq an7vKRLTFKFvsznz5BLG4PmBDnsRw54YTA== X-Google-Smtp-Source: ABdhPJxwlcK7Erm5qzS5QM35V566cXjUeFriF6GhZS5Fg3SFXfHnoXaBCk3Gpv6h7iILYeTNbtEMDQ== X-Received: by 2002:a17:90a:b791:: with SMTP id m17mr2956363pjr.239.1643046516876; Mon, 24 Jan 2022 09:48:36 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:48:36 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jakub Palider , Tomasz Duszynski Subject: [PATCH v2 69/83] raw/cnxk_bphy: remove unnecessary NULL checks Date: Mon, 24 Jan 2022 09:47:05 -0800 Message-Id: <20220124174719.14417-70-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 --- drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c b/drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c index 0b694e1c03c3..169cbc785531 100644 --- a/drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c +++ b/drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c @@ -233,8 +233,7 @@ cnxk_bphy_cgx_fini_queues(struct cnxk_bphy_cgx *cgx) unsigned int i; for (i = 0; i < cgx->num_queues; i++) { - if (cgx->queues[i].rsp) - rte_free(cgx->queues[i].rsp); + rte_free(cgx->queues[i].rsp); } cgx->num_queues = 0; -- 2.30.2