diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-12-01 22:06:22 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-12-09 15:14:33 +0300 |
commit | cfd31d85bb42b96449157bd57c638dc779070753 (patch) | |
tree | c8a161507abf09c32fb36fbf5f93fb1347d6bf06 /tools/perf/util | |
parent | e641f696ebe4514efac00d1f4a485a06c8e94eea (diff) | |
download | linux-cfd31d85bb42b96449157bd57c638dc779070753.tar.xz |
perf tools: Use single strcmp call instead of two
There's no need to use 2 strcmp calls, one is enough.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1417460789-13874-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 57ff826f150b..c802236b2bfe 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -522,7 +522,7 @@ static int buildid_dir_command_config(const char *var, const char *value, const char *v; /* same dir for all commands */ - if (!prefixcmp(var, "buildid.") && !strcmp(var + 8, "dir")) { + if (!strcmp(var, "buildid.dir")) { v = perf_config_dirname(var, value); if (!v) return -1; |