Skip to content

Commit

Permalink
ipmi_si: Delete an error message for a failed memory allocation in tr…
Browse files Browse the repository at this point in the history
…y_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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
  • Loading branch information
Markus Elfring authored and Corey Minyard committed Oct 17, 2017
1 parent c0a32fe commit d7e17fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d7e17fe

Please sign in to comment.