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 ECB0BA04A6; Mon, 24 Jan 2022 01:12:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 068F34295F; Mon, 24 Jan 2022 01:06:48 +0100 (CET) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id E658142948 for ; Mon, 24 Jan 2022 01:06:43 +0100 (CET) Received: by mail-pg1-f174.google.com with SMTP id v3so8362334pgc.1 for ; Sun, 23 Jan 2022 16:06:43 -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=SNwpG3frGNXXYttKmqH6tfoJ/7BWDNsqwVHnDJXpTaM=; b=XXRDBnKteLRr9io8+9fACZqBCMemboEaIzHJTY2s8ITU6M00qcTKh/PG4p6otbf7Br bqtVrDhBMUaUJcV+XVlArMDYoYQJsgro+V+f/yWHGCfezlJZTUENY8mqs15kpMWCyJ9a lqxhDsPdclDAN8bdMJ8X1e5tb88pgsx5VrdkkWwLTmdN731BWAiWNxCttsHFeq4xGpdZ ECS8ix0wEWRo8jSf6gXMf9KRbj+oR9TqnNN22PaHOWjrMfrMDvA3FbtUcKT4UpeaQMrJ BRNGBUUyelj6zf1QXxkCDTgVJSYOnIu3QQHQIZTMLqmr9jwu7FBMdSB2q2WVHl5Wbl1d OJhg== 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=SNwpG3frGNXXYttKmqH6tfoJ/7BWDNsqwVHnDJXpTaM=; b=VMM16+bokh9k9TVw76yCGTwG3i2sHVqLTl/dyLimryaYE3sEYPKmdgD8/i4OKNMvG2 BaaB7oePwG4GFXRCNWRT8GCxxkglksgCwjk4bremzyl6UovPu9kM12Grz0LacVBpduLC XUMy0pGdmf2M3Rg8qzUdSkgry/Ml9/1HffCgLblRfBAz3nDvJbd2W03F+jLZxkGQ9jGa HcbYBMcq5X2VaLZVNk7/WUJABqI0DNsMEtQkR9XzC5IBpuOjmNOF5m1S79Wj67x/dup8 XYLC7Wuymd0o+4XhnDutFMQVGo9jjO58F7t0iTZ7JqMuFsZd+XjPhwKMPwkFUfB8+FLR ELqg== X-Gm-Message-State: AOAM5315pWWT26wqMRhQ46Z2W3q74wlJai/+b1ZvkAyauH1ag8Scopi4 suF/U0c6MtdgORBajYJgpkWqUdTppEIXQg== X-Google-Smtp-Source: ABdhPJyoc7X65z7Nsw59odavMxNipYPkBi0tkG9lEopSi4i/61jimit8MobpbknjMmTFV5JsWb2R4g== X-Received: by 2002:a63:7906:: with SMTP id u6mr9920705pgc.28.1642982802932; Sun, 23 Jan 2022 16:06:42 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jerin Jacob , Kiran Kumar K , Nithin Dabilpuram Subject: [PATCH 78/82] graph: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:14 -0800 Message-Id: <20220124000518.319850-79-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/graph/graph_stats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/graph/graph_stats.c b/lib/graph/graph_stats.c index aa70929dc32e..65e12d46a313 100644 --- a/lib/graph/graph_stats.c +++ b/lib/graph/graph_stats.c @@ -233,8 +233,7 @@ cluster_add(struct cluster *cluster, struct graph *graph) static void cluster_fini(struct cluster *cluster) { - if (cluster->graphs) - free(cluster->graphs); + free(cluster->graphs); } static int -- 2.30.2