diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/config.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index e02d78cae70f..6c86eca8b1b7 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c | |||
@@ -399,7 +399,6 @@ static int perf_config_global(void) | |||
399 | int perf_config(config_fn_t fn, void *data) | 399 | int perf_config(config_fn_t fn, void *data) |
400 | { | 400 | { |
401 | int ret = 0, found = 0; | 401 | int ret = 0, found = 0; |
402 | char *repo_config = NULL; | ||
403 | const char *home = NULL; | 402 | const char *home = NULL; |
404 | 403 | ||
405 | /* Setting $PERF_CONFIG makes perf read _only_ the given config file. */ | 404 | /* Setting $PERF_CONFIG makes perf read _only_ the given config file. */ |
@@ -421,12 +420,6 @@ int perf_config(config_fn_t fn, void *data) | |||
421 | free(user_config); | 420 | free(user_config); |
422 | } | 421 | } |
423 | 422 | ||
424 | repo_config = perf_pathdup("config"); | ||
425 | if (!access(repo_config, R_OK)) { | ||
426 | ret += perf_config_from_file(fn, repo_config, data); | ||
427 | found += 1; | ||
428 | } | ||
429 | free(repo_config); | ||
430 | if (found == 0) | 423 | if (found == 0) |
431 | return -1; | 424 | return -1; |
432 | return ret; | 425 | return ret; |