Re: [PATCH 02/14] perf util: Use evsel->name to get tracepoint_paths

From: Namhyung Kim
Date: Wed Apr 24 2013 - 06:36:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/