diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-10-15 16:30:11 -0400 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-10-17 16:50:15 -0400 |
commit | d7e17fe4f7a7d961cc4375c7d868bd353a039bc7 (patch) | |
tree | 5b82a73d2ed1eab7b28c769a105b20844d52bc40 | |
parent | c0a32fe13cd323ca9420500b16fd69589c9ba91e (diff) |
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 4c16af64f73a..71d33a1807e4 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2096,7 +2096,6 @@ static int try_smi_init(struct smi_info *new_smi) | |||
2096 | /* Allocate the state machine's data and initialize it. */ | 2096 | /* Allocate the state machine's data and initialize it. */ |
2097 | new_smi->si_sm = kmalloc(new_smi->handlers->size(), GFP_KERNEL); | 2097 | new_smi->si_sm = kmalloc(new_smi->handlers->size(), GFP_KERNEL); |
2098 | if (!new_smi->si_sm) { | 2098 | if (!new_smi->si_sm) { |
2099 | pr_err(PFX "Could not allocate state machine memory\n"); | ||
2100 | rv = -ENOMEM; | 2099 | rv = -ENOMEM; |
2101 | goto out_err; | 2100 | goto out_err; |
2102 | } | 2101 | } |