ipmi_si: Delete an error message for a failed memory allocation in try_smi_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 15 Oct 2017 20:30:11 +0000 (22:30 +0200)
committerCorey Minyard <cminyard@mvista.com>
Tue, 17 Oct 2017 20:50:15 +0000 (15:50 -0500)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c

index 4c16af6..71d33a1 100644 (file)
@@ -2096,7 +2096,6 @@ static int try_smi_init(struct smi_info *new_smi)
        /* Allocate the state machine's data and initialize it. */
        new_smi->si_sm = kmalloc(new_smi->handlers->size(), GFP_KERNEL);
        if (!new_smi->si_sm) {
-               pr_err(PFX "Could not allocate state machine memory\n");
                rv = -ENOMEM;
                goto out_err;
        }