[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] dm: uninitialize static variables v2
- From: Nicolas Kaiser <nikai nikai net>
- To: kernel-janitors lists osdl org
- Cc: dm-devel redhat com
- Subject: [dm-devel] [PATCH] dm: uninitialize static variables v2
- Date: Sat, 10 Dec 2005 20:32:26 +0100
uninitialize static variables initialized to 0, to make them go
to .bss instead of .data.
Signed-off-by: Nicolas Kaiser <nikai nikai net>
---
drivers/md/dm.c | 4 ++--
drivers/md/kcopyd.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff -urpN a/drivers/md/dm.c b/drivers/md/dm.c
--- a/drivers/md/dm.c 2005-10-02 15:53:35.000000000 +0200
+++ b/drivers/md/dm.c 2005-12-10 20:24:13.000000000 +0100
@@ -20,8 +20,8 @@
static const char *_name = DM_NAME;
-static unsigned int major = 0;
-static unsigned int _major = 0;
+static unsigned int major;
+static unsigned int _major;
/*
* One of these is allocated per bio.
diff -urpN a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c
--- a/drivers/md/kcopyd.c 2005-10-02 15:53:35.000000000 +0200
+++ b/drivers/md/kcopyd.c 2005-12-10 20:26:16.000000000 +0100
@@ -588,7 +588,7 @@ static void client_del(struct kcopyd_cli
}
static DECLARE_MUTEX(kcopyd_init_lock);
-static int kcopyd_clients = 0;
+static int kcopyd_clients;
static int kcopyd_init(void)
{
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]