Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7e17fe4 authored by Markus Elfring's avatar Markus Elfring Committed by Corey Minyard
Browse files

ipmi_si: Delete an error message for a failed memory allocation in try_smi_init()



Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent c0a32fe1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}