public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Peng Fan <fanpeng@loongson.cn>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf bench numa: Remove dead code in parse_nodes_opt()
Date: Fri, 14 Aug 2020 09:42:42 -0300	[thread overview]
Message-ID: <20200814124242.GE13995@kernel.org> (raw)
In-Reply-To: <1597401894-27549-1-git-send-email-fanpeng@loongson.cn>

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@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
> 

-- 

- Arnaldo

      reply	other threads:[~2020-08-14 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-14 10:44 [PATCH] perf bench numa: Remove dead code in parse_nodes_opt() Peng Fan
2020-08-14 12:42 ` Arnaldo Carvalho de Melo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200814124242.GE13995@kernel.org \
    --to=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=fanpeng@loongson.cn \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox