]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ipmi: Remove some unnecessary initializations
authorCorey Minyard <cminyard@mvista.com>
Wed, 28 Feb 2018 13:56:47 +0000 (07:56 -0600)
committerCorey 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

index 2b9f434775d4dfeb8101a56a9c665dfd76d737f9..0349b877d1d60b014d63567e5bdb3c61aebfa250 100644 (file)
@@ -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) {