lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 14 Aug 2020 09:42:42 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     Peng Fan <fanpeng@...ngson.cn>
Cc:     Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...hat.com>,
        Namhyung Kim <namhyung@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf bench numa: Remove dead code in parse_nodes_opt()

Em Fri, Aug 14, 2020 at 06:44:54PM +0800, Peng Fan escreveu:
> In the function parse_nodes_opt(), the statement "return 0;" is dead 
> code, remove it.

Thanks, applied.

- Arnaldo
 
> Signed-off-by: Peng Fan <fanpeng@...ngson.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
> 

-- 

- Arnaldo

Powered by blists - more mailing lists