diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-10-15 22:30:11 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-10-17 15:50:15 -0500 |
commit | d7e17fe4f7a7d961cc4375c7d868bd353a039bc7 (patch) | |
tree | 5b82a73d2ed1eab7b28c769a105b20844d52bc40 /drivers/char/ipmi | |
parent | c0a32fe13cd323ca9420500b16fd69589c9ba91e (diff) | |
download | linux-stable-d7e17fe4f7a7d961cc4375c7d868bd353a039bc7.tar.gz linux-stable-d7e17fe4f7a7d961cc4375c7d868bd353a039bc7.tar.bz2 linux-stable-d7e17fe4f7a7d961cc4375c7d868bd353a039bc7.zip |
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>
Diffstat (limited to 'drivers/char/ipmi')
-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) /* 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; } |