From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753271AbdEILFA (ORCPT ); Tue, 9 May 2017 07:05:00 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33956 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbdEILE5 (ORCPT ); Tue, 9 May 2017 07:04:57 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Namhyung Kim Subject: [PATCH v3 3/7] perf config: Return -1 if show_spec_config() cannot show the config Date: Tue, 9 May 2017 20:04:52 +0900 Message-Id: <1494327892-25150-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the config isn't found in the config set, show_spec_config() cannot show the config. But it return 0 on the situation though, so fix it. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c index ece4558..6a4d8cd 100644 --- a/tools/perf/builtin-config.c +++ b/tools/perf/builtin-config.c @@ -97,7 +97,7 @@ static int show_spec_config(struct perf_config_set *set, const char *var) } } - return 0; + return -1; } static int show_config(struct perf_config_set *set) -- 2.7.4