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_poweroff.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_poweroff.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_poweroff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c index 597eb4f88b84..9d23136e598a 100644 --- a/drivers/char/ipmi/ipmi_poweroff.c +++ b/drivers/char/ipmi/ipmi_poweroff.c | |||
@@ -58,10 +58,10 @@ static int poweroff_powercycle; | |||
58 | static int ifnum_to_use = -1; | 58 | static int ifnum_to_use = -1; |
59 | 59 | ||
60 | /* Our local state. */ | 60 | /* Our local state. */ |
61 | static int ready = 0; | 61 | static int ready; |
62 | static ipmi_user_t ipmi_user; | 62 | static ipmi_user_t ipmi_user; |
63 | static int ipmi_ifnum; | 63 | static int ipmi_ifnum; |
64 | static void (*specific_poweroff_func)(ipmi_user_t user) = NULL; | 64 | static void (*specific_poweroff_func)(ipmi_user_t user); |
65 | 65 | ||
66 | /* Holds the old poweroff function so we can restore it on removal. */ | 66 | /* Holds the old poweroff function so we can restore it on removal. */ |
67 | static void (*old_poweroff_func)(void); | 67 | static void (*old_poweroff_func)(void); |
@@ -182,7 +182,7 @@ static int ipmi_request_in_rc_mode(ipmi_user_t user, | |||
182 | #define IPMI_MOTOROLA_MANUFACTURER_ID 0x0000A1 | 182 | #define IPMI_MOTOROLA_MANUFACTURER_ID 0x0000A1 |
183 | #define IPMI_MOTOROLA_PPS_IPMC_PRODUCT_ID 0x0051 | 183 | #define IPMI_MOTOROLA_PPS_IPMC_PRODUCT_ID 0x0051 |
184 | 184 | ||
185 | static void (*atca_oem_poweroff_hook)(ipmi_user_t user) = NULL; | 185 | static void (*atca_oem_poweroff_hook)(ipmi_user_t user); |
186 | 186 | ||
187 | static void pps_poweroff_atca (ipmi_user_t user) | 187 | static void pps_poweroff_atca (ipmi_user_t user) |
188 | { | 188 | { |