lkml.org 
[lkml]   [2020]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] perf bench numa: Remove dead code in parse_nodes_opt()
Date
In the function parse_nodes_opt(), the statement "return 0;" is dead 
code, remove it.

Signed-off-by: Peng Fan <fanpeng@loongson.cn>
---
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
\
 
 \ /
  Last update: 2020-08-14 12:46    [W:0.044 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site