[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8761zcb4fx.fsf@sejong.aot.lge.com>
Date: Wed, 24 Apr 2013 19:36:50 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Ingo Molnar <mingo@...nel.org>,
Namhyung Kim <namhyung.kim@....com>,
LKML <linux-kernel@...r.kernel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Jiri Olsa <jolsa@...hat.com>, David Ahern <dsahern@...il.com>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 02/14] perf util: Use evsel->name to get tracepoint_paths
On Tue, 23 Apr 2013 09:07:20 -0400, Steven Rostedt wrote:
>> +
>> + if (pos->name && strchr(pos->name, ':')) {
>> + char *str = strchr(pos->name, ':');
>
> Why not make the above into:
>
> if (pos->name && (str = strchr(pos->name, ':'))) {
>
> ?
I wanted not to have an assignment in an if condition, just for my
preference. I will change it.
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists