Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f044091c authored by Douglas Thompson's avatar Douglas Thompson Committed by Linus Torvalds
Browse files

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: default avatarDouglas Thompson <dougthompson@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 977c76bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
/* MC EDAC Controls, setable by module parameter, and sysfs */
static int edac_mc_log_ue = 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;

/* Getter functions for above */
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ struct workqueue_struct *edac_workqueue;
static struct sysdev_class edac_class = {
	set_kset_name("edac"),
};
static int edac_class_valid = 0;
static int edac_class_valid;

/*
 * edac_op_state_toString()
+1 −1
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
	edac_pci_do_parity_check();
}

static int edac_pci_idx = 0;
static int edac_pci_idx;
#define EDAC_PCI_GENCTL_NAME	"EDAC PCI controller"

struct edac_pci_gen_data {
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@

#define EDAC_PCI_SYMLINK	"device"

static int check_pci_errors = 0;	/* default YES check PCI parity */
static int edac_pci_panic_on_pe = 0;	/* default no panic on PCI Parity */
static int check_pci_errors;	/* default YES check 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_npe = 1;	/* log PCI non-parity error errors */
static atomic_t pci_parity_count = ATOMIC_INIT(0);
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ static const struct i3000_dev_info i3000_devs[] = {
		.ctl_name = "i3000"},
};

static struct pci_dev *mci_pdev = NULL;
static struct pci_dev *mci_pdev;
static int i3000_registered = 1;
static struct edac_pci_ctl_info *i3000_pci;

Loading