mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: SF Markus Elfring <elfring@users.sourceforge.net>,
	openipmi-developer@lists.sourceforge.net
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] ipmi_si: Delete an error message for a failed memory allocation in try_smi_init()
Date: Tue, 17 Oct 2017 15:47:04 -0500	[thread overview]
Message-ID: <de4d7991-0b8f-4596-2e3b-0b93046dd6d1@acm.org> (raw)
In-Reply-To: <dc91d8bf-c484-4411-f307-cadf7ad510f5@users.sourceforge.net>

On 10/15/2017 03:36 PM, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sun, 15 Oct 2017 22:30:11 +0200
>
> Omit an extra message for a memory allocation failure in this function.

Thanks, queued for the next release.

-corey

> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---
>   drivers/char/ipmi/ipmi_si_intf.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
> index 55e0c42bee4d..2aed46a6c49c 100644
> --- a/drivers/char/ipmi/ipmi_si_intf.c
> +++ b/drivers/char/ipmi/ipmi_si_intf.c
> @@ -2095,7 +2095,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;
>   	}

      reply	other threads:[~2017-10-17 20:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-15 20:36 SF Markus Elfring
2017-10-17 20:47 ` Corey Minyard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de4d7991-0b8f-4596-2e3b-0b93046dd6d1@acm.org \
    --to=minyard@acm.org \
    --cc=elfring@users.sourceforge.net \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openipmi-developer@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®