diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-02-28 07:56:47 -0600 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-03-06 19:47:49 -0600 |
commit | da18e2c6a81376ff37a326d28f16c3dcaa368f90 (patch) | |
tree | 4167ee3787904e08a2d05dec3246a8b2aa7a6d91 /drivers/char | |
parent | cc095f0ac1f7c200e51a5c2a78a43c9f42049dbb (diff) | |
download | linux-da18e2c6a81376ff37a326d28f16c3dcaa368f90.tar.bz2 |
ipmi: Remove some unnecessary initializations
The data is allocated with kzalloc, no need to set things to NULL.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 2b9f434775d4..0349b877d1d6 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2000,11 +2000,6 @@ int ipmi_si_add_smi(struct si_sm_io *io) ipmi_addr_src_to_str(new_smi->io.addr_source), 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); if (initialized) { |