[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070426234756.GM3468@stusta.de>
Date: Fri, 27 Apr 2007 01:47:56 +0200
From: Adrian Bunk <bunk@...sta.de>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: dwmw2@...radead.org, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [RFC: 2.6 patch] drivers/mtd/maps/nettel.c: possible cleanups
This patch contains the following possible cleanups:
- make 2 needlessly global functions static
- #if 0 the unused nettel_eraseconfig()
Signed-off-by: Adrian Bunk <bunk@...sta.de>
---
This patch has been sent on:
- 27 Mar 2007
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists