From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.stusta.mhn.de ([141.84.69.5] helo=mailhub.stusta.mhn.de) by canuck.infradead.org with esmtp (Exim 4.63 #1 (Red Hat Linux)) id 1HW079-0008FH-IA for linux-mtd@lists.infradead.org; Mon, 26 Mar 2007 21:04:44 -0400 Date: Tue, 27 Mar 2007 03:02:43 +0200 From: Adrian Bunk To: dwmw2@infradead.org Subject: [RFC: 2.6 patch] drivers/mtd/maps/nettel.c: possible cleanups Message-ID: <20070327010243.GV16477@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch contains the following possible cleanups: - make 2 needlessly global functions static - #if 0 the unused nettel_eraseconfig() Signed-off-by: Adrian Bunk --- drivers/mtd/maps/nettel.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- linux-2.6.21-rc4-mm1/drivers/mtd/maps/nettel.c.old 2007-03-26 16:04:25.000000000 +0200 +++ linux-2.6.21-rc4-mm1/drivers/mtd/maps/nettel.c 2007-03-26 16:09:39.000000000 +0200 @@ -158,6 +158,8 @@ nettel_reboot_notifier, NULL, 0 }; +#if 0 + /* * Erase the configuration file system. * Used to support the software reset button. @@ -208,18 +210,22 @@ return(0); } +#endif /* 0 */ + #else +#if 0 int nettel_eraseconfig(void) { return(0); } +#endif /* 0 */ #endif /****************************************************************************/ -int __init nettel_init(void) +static int __init nettel_init(void) { volatile unsigned long *amdpar; unsigned long amdaddr, maxsize; @@ -477,7 +483,7 @@ /****************************************************************************/ -void __exit nettel_cleanup(void) +static void __exit nettel_cleanup(void) { #ifdef CONFIG_MTD_CFI_INTELEXT unregister_reboot_notifier(&nettel_notifier_block);