diff options
author | Douglas Thompson <dougthompson@xmission.com> | 2007-07-19 04:50:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:55 -0400 |
commit | f044091ca4c0b05be8f83748d76d4fbba4fc74cf (patch) | |
tree | 0ceb7dabbddce313917ff5b7d15e72aed231859a | |
parent | 977c76bd687585f4528c6c9c6966842955771f52 (diff) |
drivers/edac: remove null from statics
Patches to conform to coding style, namely static don't need to be initialized
to NULL nor '0', as that is the default
Signed-off-by: Douglas Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/edac/edac_module.c | 2 | ||||
-rw-r--r-- | drivers/edac/edac_pci.c | 2 | ||||
-rw-r--r-- | drivers/edac/edac_pci_sysfs.c | 4 | ||||
-rw-r--r-- | drivers/edac/i3000_edac.c | 2 | ||||
-rw-r--r-- | drivers/edac/i82860_edac.c | 2 | ||||
-rw-r--r-- | drivers/edac/i82875p_edac.c | 2 | ||||
-rw-r--r-- | drivers/edac/r82600_edac.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index bbd845885d4f..0843eaa10ec9 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -17,7 +17,7 @@ | |||
17 | /* MC EDAC Controls, setable by module parameter, and sysfs */ | 17 | /* MC EDAC Controls, setable by module parameter, and sysfs */ |
18 | static int edac_mc_log_ue = 1; | 18 | static int edac_mc_log_ue = 1; |
19 | static int edac_mc_log_ce = 1; | 19 | static int edac_mc_log_ce = 1; |
20 | static int edac_mc_panic_on_ue = 0; | 20 | static int edac_mc_panic_on_ue; |
21 | static int edac_mc_poll_msec = 1000; | 21 | static int edac_mc_poll_msec = 1000; |
22 | 22 | ||
23 | /* Getter functions for above */ | 23 | /* Getter functions for above */ |
diff --git a/drivers/edac/edac_module.c b/drivers/edac/edac_module.c index d43f9ddc5c49..9e7406f28b3b 100644 --- a/drivers/edac/edac_module.c +++ b/drivers/edac/edac_module.c | |||
@@ -32,7 +32,7 @@ struct workqueue_struct *edac_workqueue; | |||
32 | static struct sysdev_class edac_class = { | 32 | static struct sysdev_class edac_class = { |
33 | set_kset_name("edac"), | 33 | set_kset_name("edac"), |
34 | }; | 34 | }; |
35 | static int edac_class_valid = 0; | 35 | static int edac_class_valid; |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * edac_op_state_toString() | 38 | * edac_op_state_toString() |
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index f4f718c764db..fd0b1222dc75 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c | |||
@@ -385,7 +385,7 @@ void edac_pci_generic_check(struct edac_pci_ctl_info *pci) | |||
385 | edac_pci_do_parity_check(); | 385 | edac_pci_do_parity_check(); |
386 | } | 386 | } |
387 | 387 | ||
388 | static int edac_pci_idx = 0; | 388 | static int edac_pci_idx; |
389 | #define EDAC_PCI_GENCTL_NAME "EDAC PCI controller" | 389 | #define EDAC_PCI_GENCTL_NAME "EDAC PCI controller" |
390 | 390 | ||
391 | struct edac_pci_gen_data { | 391 | struct edac_pci_gen_data { |
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c index 804833ce0fef..fac94cae2c3d 100644 --- a/drivers/edac/edac_pci_sysfs.c +++ b/drivers/edac/edac_pci_sysfs.c | |||
@@ -17,8 +17,8 @@ | |||
17 | 17 | ||
18 | #define EDAC_PCI_SYMLINK "device" | 18 | #define EDAC_PCI_SYMLINK "device" |
19 | 19 | ||
20 | static int check_pci_errors = 0; /* default YES check PCI parity */ | 20 | static int check_pci_errors; /* default YES check PCI parity */ |
21 | static int edac_pci_panic_on_pe = 0; /* default no panic on PCI Parity */ | 21 | static int edac_pci_panic_on_pe; /* default no panic on PCI Parity */ |
22 | static int edac_pci_log_pe = 1; /* log PCI parity errors */ | 22 | static int edac_pci_log_pe = 1; /* log PCI parity errors */ |
23 | static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ | 23 | static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ |
24 | static atomic_t pci_parity_count = ATOMIC_INIT(0); | 24 | static atomic_t pci_parity_count = ATOMIC_INIT(0); |
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c index d410bf7c4463..02cd25a15fd4 100644 --- a/drivers/edac/i3000_edac.c +++ b/drivers/edac/i3000_edac.c | |||
@@ -151,7 +151,7 @@ static const struct i3000_dev_info i3000_devs[] = { | |||
151 | .ctl_name = "i3000"}, | 151 | .ctl_name = "i3000"}, |
152 | }; | 152 | }; |
153 | 153 | ||
154 | static struct pci_dev *mci_pdev = NULL; | 154 | static struct pci_dev *mci_pdev; |
155 | static int i3000_registered = 1; | 155 | static int i3000_registered = 1; |
156 | static struct edac_pci_ctl_info *i3000_pci; | 156 | static struct edac_pci_ctl_info *i3000_pci; |
157 | 157 | ||
diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c index 9fdd76e157f8..c4c1e76b1270 100644 --- a/drivers/edac/i82860_edac.c +++ b/drivers/edac/i82860_edac.c | |||
@@ -57,7 +57,7 @@ static const struct i82860_dev_info i82860_devs[] = { | |||
57 | .ctl_name = "i82860"}, | 57 | .ctl_name = "i82860"}, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code | 60 | static struct pci_dev *mci_pdev; /* init dev: in case that AGP code |
61 | * has already registered driver | 61 | * has already registered driver |
62 | */ | 62 | */ |
63 | static struct edac_pci_ctl_info *i82860_pci; | 63 | static struct edac_pci_ctl_info *i82860_pci; |
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index ce5f0053cdd3..73a173e25985 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c | |||
@@ -177,7 +177,7 @@ static const struct i82875p_dev_info i82875p_devs[] = { | |||
177 | .ctl_name = "i82875p"}, | 177 | .ctl_name = "i82875p"}, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code has | 180 | static struct pci_dev *mci_pdev; /* init dev: in case that AGP code has |
181 | * already registered driver | 181 | * already registered driver |
182 | */ | 182 | */ |
183 | 183 | ||
diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c index 0a971ebdccec..eb6090e1b60f 100644 --- a/drivers/edac/r82600_edac.c +++ b/drivers/edac/r82600_edac.c | |||
@@ -131,7 +131,7 @@ struct r82600_error_info { | |||
131 | u32 eapr; | 131 | u32 eapr; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static unsigned int disable_hardware_scrub = 0; | 134 | static unsigned int disable_hardware_scrub; |
135 | 135 | ||
136 | static struct edac_pci_ctl_info *r82600_pci; | 136 | static struct edac_pci_ctl_info *r82600_pci; |
137 | 137 | ||