diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2006-12-10 05:19:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:40 -0500 |
commit | 0c8204b380f92a6a8533d228c50f0b681daf6121 (patch) | |
tree | 2cc04bf14b1eaaf8ab22ab48a2828ff6ea3b27e2 /drivers/char/ipmi/ipmi_si_intf.c | |
parent | 76465493eeadb1662d65aa96477d6fc093da9966 (diff) |
[PATCH] IPMI: remove zero inits
Remove all =0 and =NULL from static initializers. They are not needed and
removing them saves space in the object files.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_intf.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 81a0c89598e7..0baa094961a8 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -845,7 +845,7 @@ static void request_events(void *send_info) | |||
845 | atomic_set(&smi_info->req_events, 1); | 845 | atomic_set(&smi_info->req_events, 1); |
846 | } | 846 | } |
847 | 847 | ||
848 | static int initialized = 0; | 848 | static int initialized; |
849 | 849 | ||
850 | static void smi_timeout(unsigned long data) | 850 | static void smi_timeout(unsigned long data) |
851 | { | 851 | { |
@@ -1018,13 +1018,13 @@ static int num_ports; | |||
1018 | static int irqs[SI_MAX_PARMS]; | 1018 | static int irqs[SI_MAX_PARMS]; |
1019 | static int num_irqs; | 1019 | static int num_irqs; |
1020 | static int regspacings[SI_MAX_PARMS]; | 1020 | static int regspacings[SI_MAX_PARMS]; |
1021 | static int num_regspacings = 0; | 1021 | static int num_regspacings; |
1022 | static int regsizes[SI_MAX_PARMS]; | 1022 | static int regsizes[SI_MAX_PARMS]; |
1023 | static int num_regsizes = 0; | 1023 | static int num_regsizes; |
1024 | static int regshifts[SI_MAX_PARMS]; | 1024 | static int regshifts[SI_MAX_PARMS]; |
1025 | static int num_regshifts = 0; | 1025 | static int num_regshifts; |
1026 | static int slave_addrs[SI_MAX_PARMS]; | 1026 | static int slave_addrs[SI_MAX_PARMS]; |
1027 | static int num_slave_addrs = 0; | 1027 | static int num_slave_addrs; |
1028 | 1028 | ||
1029 | #define IPMI_IO_ADDR_SPACE 0 | 1029 | #define IPMI_IO_ADDR_SPACE 0 |
1030 | #define IPMI_MEM_ADDR_SPACE 1 | 1030 | #define IPMI_MEM_ADDR_SPACE 1 |
@@ -1668,7 +1668,7 @@ static __devinit void hardcode_find_bmc(void) | |||
1668 | /* Once we get an ACPI failure, we don't try any more, because we go | 1668 | /* Once we get an ACPI failure, we don't try any more, because we go |
1669 | through the tables sequentially. Once we don't find a table, there | 1669 | through the tables sequentially. Once we don't find a table, there |
1670 | are no more. */ | 1670 | are no more. */ |
1671 | static int acpi_failure = 0; | 1671 | static int acpi_failure; |
1672 | 1672 | ||
1673 | /* For GPE-type interrupts. */ | 1673 | /* For GPE-type interrupts. */ |
1674 | static u32 ipmi_acpi_gpe(void *context) | 1674 | static u32 ipmi_acpi_gpe(void *context) |