Commit da18e2c6 authored by Corey Minyard's avatar Corey Minyard

ipmi: Remove some unnecessary initializations

The data is allocated with kzalloc, no need to set things to NULL.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent cc095f0a
...@@ -2000,11 +2000,6 @@ int ipmi_si_add_smi(struct si_sm_io *io) ...@@ -2000,11 +2000,6 @@ int ipmi_si_add_smi(struct si_sm_io *io)
ipmi_addr_src_to_str(new_smi->io.addr_source), ipmi_addr_src_to_str(new_smi->io.addr_source),
si_to_str[new_smi->io.si_type]); si_to_str[new_smi->io.si_type]);
/* So we know not to free it unless we have allocated one. */
new_smi->intf = NULL;
new_smi->si_sm = NULL;
new_smi->handlers = NULL;
list_add_tail(&new_smi->link, &smi_infos); list_add_tail(&new_smi->link, &smi_infos);
if (initialized) { if (initialized) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment