projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc095f0
)
ipmi: Remove some unnecessary initializations
author
Corey Minyard
<cminyard@mvista.com>
Wed, 28 Feb 2018 13:56:47 +0000
(07:56 -0600)
committer
Corey Minyard
<cminyard@mvista.com>
Wed, 7 Mar 2018 01:47:49 +0000
(19:47 -0600)
The data is allocated with kzalloc, no need to set things to NULL.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/ipmi/ipmi_si_intf.c
b/drivers/char/ipmi/ipmi_si_intf.c
index 2b9f434775d4dfeb8101a56a9c665dfd76d737f9..0349b877d1d60b014d63567e5bdb3c61aebfa250 100644
(file)
--- 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) {