Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2999697AbdDZMVi (ORCPT ); Wed, 26 Apr 2017 08:21:38 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33703 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2998477AbdDZMVa (ORCPT ); Wed, 26 Apr 2017 08:21:30 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Namhyung Kim , Taeung Song Subject: [PATCH 0/7] perf config: Bugfixes & Refactoring Date: Wed, 26 Apr 2017 21:21:01 +0900 Message-Id: <1493209268-5543-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 Content-Length: 912 Lines: 30 Hi all, :) This is simple patchset for perf-config to fix small bugs and refactor code. I'd appreciate some feedback on this patchset. The code is also avaiable at 'config/refactoring' branch on git://github.com/taeung/linux-perf.git Thanks, Taeung Taeung Song (7): perf config: Refactor a duplicated code for config file name perf config: Check list empty before showing configs perf config: Use none_err for all cases that nothing configured perf config: Invert if statements to reduce nesting in cmd_config() perf config: Correctly check whether it is from system config perf config: Finally write changed configs on config file at a time perf config: No free config set when it's initialization failed tools/perf/builtin-config.c | 92 +++++++++++++++++++++++++-------------------- tools/perf/util/config.c | 7 +--- 2 files changed, 54 insertions(+), 45 deletions(-) -- 2.7.4