Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp268247pxa; Fri, 14 Aug 2020 03:49:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj4nAcQRRkuAaNOyKR3LcYSH12VaDtLMoxcBiCvLuEa10bJFssiNs8SqbU6ltrX09dwW/p X-Received: by 2002:a50:e846:: with SMTP id k6mr1552152edn.27.1597402143130; Fri, 14 Aug 2020 03:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597402143; cv=none; d=google.com; s=arc-20160816; b=godOD2ERYqGcWav8nv7UjwOUobl7Arc9L+N3U1UejqbnQYcMp5SLG8u/A6lOnfvi/a o1gKg1AUm82220WrHVZW22blP845DTloKDU/Vgzu5XXAw8pJST+4mrl3rVJmsfvi+AI0 B016Dmsscns6Z7rP+Ockq1tflo1n1L1450Gnp0396O8N81GGS/c0btvDBH5mUsa1Z8FA F21xDVroCoheC1o+XxH+gx+HAz/+E7oL58uSG+Mah0Y3lQ7Xzbv8auiQVqHSq5AaNF4z DCjoCc5IW6C+3BtBk4H0Prn6SsudZWf8C4V2Uh/F/pkEdFKYwBAVWz6fEw5VNJpSDLKD CX4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=NwyAfgIqapZ5ry+yt20/Y0NKh99sxw8/MxHgPyhTGOY=; b=Ca8vh3ALIkdrCcMqwoQ8PO5Mj8JBUF5wWNDz+nAgKlzD2edw0NTsex8dV65aao2+MB O6i6H+VpEvyNYvIEZDmo5MfBTM7NyjkAQ0IDiNAtpVkRMDksNd2ObeZgDZ3+H27mhkAm AzYLncp8hsRQpZd251CTKs+VeKzE1b7W9/xqD1jUSwjyQSxw9ciuAEzrLLuS/UQHn+Vl dgcLD1NuBYENkuhRNvTUgUW1wZcGGxG1XLhSyddpDnx4W19zbRbleDYcJtIpa7CW9Fy0 oyMBT8Zo7j2hgAy7DUb6IGjnoDzqh9mbjxtRZEvdQ62cmhswcCsIcMtUS9hsPksiiC4z 1l/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c101si5252911edf.277.2020.08.14.03.48.40; Fri, 14 Aug 2020 03:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727074AbgHNKpJ (ORCPT + 99 others); Fri, 14 Aug 2020 06:45:09 -0400 Received: from mail.loongson.cn ([114.242.206.163]:46942 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727052AbgHNKpG (ORCPT ); Fri, 14 Aug 2020 06:45:06 -0400 Received: from ticat.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxKMQmazZfBOYIAA--.181S2; Fri, 14 Aug 2020 18:44:55 +0800 (CST) From: Peng Fan To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org Subject: [PATCH] perf bench numa: Remove dead code in parse_nodes_opt() Date: Fri, 14 Aug 2020 18:44:54 +0800 Message-Id: <1597401894-27549-1-git-send-email-fanpeng@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9DxKMQmazZfBOYIAA--.181S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY07k0a2IF6F4UM7kC6x804xWl14x267AK xVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j 6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr 1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv 0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUXVWUAwAv7VC2z2 80aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Av z4vE14v_Gw1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4 xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1D MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I 0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v2 6r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07 UKeHDUUUUU= X-CM-SenderInfo: xidq1vtqj6z05rqj20fqof0/1tbiAQAIEl3QvMMVegAAsG Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the function parse_nodes_opt(), the statement "return 0;" is dead code, remove it. Signed-off-by: Peng Fan --- tools/perf/bench/numa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 5797253..70c8c2c 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c @@ -729,8 +729,6 @@ static int parse_nodes_opt(const struct option *opt __maybe_unused, return -1; return parse_node_list(arg); - - return 0; } #define BIT(x) (1ul << x) -- 2.1.0