From patchwork Thu Feb 24 18:36:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 588141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1OIarHW014442 for ; Thu, 24 Feb 2011 18:36:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755837Ab1BXSgx (ORCPT ); Thu, 24 Feb 2011 13:36:53 -0500 Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:59186 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755826Ab1BXSgw (ORCPT ); Thu, 24 Feb 2011 13:36:52 -0500 Received: from roazhon.bzh.lan ([90.32.126.212]) by mwinf5d33 with ME id Bucm1g00C4b4ngA03ucrLx; Thu, 24 Feb 2011 19:36:51 +0100 From: "Yann E. MORIN" To: linux-kbuild@vger.kernel.org Subject: [PATCH 2/2] kconfig: get rid of unused flags Date: Thu, 24 Feb 2011 19:36:43 +0100 Message-Id: <1298572603-1907-3-git-send-email-yann.morin.1998@anciens.enib.fr> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1298572603-1907-1-git-send-email-yann.morin.1998@anciens.enib.fr> References: <1298572603-1907-1-git-send-email-yann.morin.1998@anciens.enib.fr> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 24 Feb 2011 18:36:53 +0000 (UTC) diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 79ab6e7..c2ea931 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -20,12 +20,8 @@ struct file { struct file *parent; const char *name; int lineno; - int flags; }; -#define FILE_BUSY 0x0001 -#define FILE_SCANNED 0x0002 - typedef enum tristate { no, mod, yes } tristate; diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped index f4b3b1a..d918291 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/lex.zconf.c_shipped @@ -2363,7 +2363,6 @@ void zconf_initscan(const char *name) current_file = file_lookup(name); current_file->lineno = 1; - current_file->flags = FILE_BUSY; } void zconf_nextfile(const char *name) @@ -2403,7 +2402,6 @@ void zconf_nextfile(const char *name) exit(1); } } - file->flags |= FILE_BUSY; file->lineno = 1; file->parent = current_file; current_file = file; @@ -2413,8 +2411,6 @@ static void zconf_endfile(void) { struct buffer *parent; - current_file->flags |= FILE_SCANNED; - current_file->flags &= ~FILE_BUSY; current_file = current_file->parent; parent = current_buf->parent; diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index f23e3af..b22f884 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -294,7 +294,6 @@ void zconf_initscan(const char *name) current_file = file_lookup(name); current_file->lineno = 1; - current_file->flags = FILE_BUSY; } void zconf_nextfile(const char *name) @@ -334,7 +333,6 @@ void zconf_nextfile(const char *name) exit(1); } } - file->flags |= FILE_BUSY; file->lineno = 1; file->parent = current_file; current_file = file; @@ -344,8 +342,6 @@ static void zconf_endfile(void) { struct buffer *parent; - current_file->flags |= FILE_SCANNED; - current_file->flags &= ~FILE_BUSY; current_file = current_file->parent; parent = current_buf->parent;