提交 f044091c 编写于 作者: D Douglas Thompson 提交者: Linus Torvalds

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: NDouglas Thompson <dougthompson@xmission.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 977c76bd
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
/* MC EDAC Controls, setable by module parameter, and sysfs */ /* MC EDAC Controls, setable by module parameter, and sysfs */
static int edac_mc_log_ue = 1; static int edac_mc_log_ue = 1;
static int edac_mc_log_ce = 1; static int edac_mc_log_ce = 1;
static int edac_mc_panic_on_ue = 0; static int edac_mc_panic_on_ue;
static int edac_mc_poll_msec = 1000; static int edac_mc_poll_msec = 1000;
/* Getter functions for above */ /* Getter functions for above */
......
...@@ -32,7 +32,7 @@ struct workqueue_struct *edac_workqueue; ...@@ -32,7 +32,7 @@ struct workqueue_struct *edac_workqueue;
static struct sysdev_class edac_class = { static struct sysdev_class edac_class = {
set_kset_name("edac"), set_kset_name("edac"),
}; };
static int edac_class_valid = 0; static int edac_class_valid;
/* /*
* edac_op_state_toString() * edac_op_state_toString()
......
...@@ -385,7 +385,7 @@ void edac_pci_generic_check(struct edac_pci_ctl_info *pci) ...@@ -385,7 +385,7 @@ void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
edac_pci_do_parity_check(); edac_pci_do_parity_check();
} }
static int edac_pci_idx = 0; static int edac_pci_idx;
#define EDAC_PCI_GENCTL_NAME "EDAC PCI controller" #define EDAC_PCI_GENCTL_NAME "EDAC PCI controller"
struct edac_pci_gen_data { struct edac_pci_gen_data {
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#define EDAC_PCI_SYMLINK "device" #define EDAC_PCI_SYMLINK "device"
static int check_pci_errors = 0; /* default YES check PCI parity */ static int check_pci_errors; /* default YES check PCI parity */
static int edac_pci_panic_on_pe = 0; /* default no panic on PCI Parity */ static int edac_pci_panic_on_pe; /* default no panic on PCI Parity */
static int edac_pci_log_pe = 1; /* log PCI parity errors */ static int edac_pci_log_pe = 1; /* log PCI parity errors */
static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */
static atomic_t pci_parity_count = ATOMIC_INIT(0); static atomic_t pci_parity_count = ATOMIC_INIT(0);
......
...@@ -151,7 +151,7 @@ static const struct i3000_dev_info i3000_devs[] = { ...@@ -151,7 +151,7 @@ static const struct i3000_dev_info i3000_devs[] = {
.ctl_name = "i3000"}, .ctl_name = "i3000"},
}; };
static struct pci_dev *mci_pdev = NULL; static struct pci_dev *mci_pdev;
static int i3000_registered = 1; static int i3000_registered = 1;
static struct edac_pci_ctl_info *i3000_pci; static struct edac_pci_ctl_info *i3000_pci;
......
...@@ -57,7 +57,7 @@ static const struct i82860_dev_info i82860_devs[] = { ...@@ -57,7 +57,7 @@ static const struct i82860_dev_info i82860_devs[] = {
.ctl_name = "i82860"}, .ctl_name = "i82860"},
}; };
static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code static struct pci_dev *mci_pdev; /* init dev: in case that AGP code
* has already registered driver * has already registered driver
*/ */
static struct edac_pci_ctl_info *i82860_pci; static struct edac_pci_ctl_info *i82860_pci;
......
...@@ -177,7 +177,7 @@ static const struct i82875p_dev_info i82875p_devs[] = { ...@@ -177,7 +177,7 @@ static const struct i82875p_dev_info i82875p_devs[] = {
.ctl_name = "i82875p"}, .ctl_name = "i82875p"},
}; };
static struct pci_dev *mci_pdev = NULL; /* init dev: in case that AGP code has static struct pci_dev *mci_pdev; /* init dev: in case that AGP code has
* already registered driver * already registered driver
*/ */
......
...@@ -131,7 +131,7 @@ struct r82600_error_info { ...@@ -131,7 +131,7 @@ struct r82600_error_info {
u32 eapr; u32 eapr;
}; };
static unsigned int disable_hardware_scrub = 0; static unsigned int disable_hardware_scrub;
static struct edac_pci_ctl_info *r82600_pci; static struct edac_pci_ctl_info *r82600_pci;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册