From: SF Markus Elfring <elfring@users.sourceforge.net>
To: kernel-janitors@vger.kernel.org,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Anton Vasilyev <vasilyev@ispras.ru>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Kosina <jkosina@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/3] misc/ibmasm: Delete an error message for a failed memory allocation in ibmasm_init_one()
Date: Mon, 8 Jan 2018 14:08:30 +0100 [thread overview]
Message-ID: <bbb0866e-73b7-ff4a-e2d4-eec9d4a8219c@users.sourceforge.net> (raw)
In-Reply-To: <842e4179-dbac-cd43-e320-c5009d896a28@users.sourceforge.net>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 8 Jan 2018 13:34:55 +0100
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>
---
drivers/misc/ibmasm/module.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c
index e914b8c80943..d22b3c428ca9 100644
--- a/drivers/misc/ibmasm/module.c
+++ b/drivers/misc/ibmasm/module.c
@@ -80,7 +80,6 @@ static int ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL);
if (sp == NULL) {
- dev_err(&pdev->dev, "Failed to allocate memory\n");
result = -ENOMEM;
goto error_kmalloc;
}
--
2.15.1
next prev parent reply other threads:[~2018-01-08 13:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-08 13:07 [PATCH 0/3] misc-IBM ASM SP: Adjustments for ibmasm_init_one() SF Markus Elfring
2018-01-08 13:08 ` SF Markus Elfring [this message]
2018-01-08 13:09 ` [PATCH 2/3] misc/ibmasm: Improve a size determination in ibmasm_init_one() SF Markus Elfring
2018-01-08 13:10 ` [PATCH 3/3] misc/ibmasm: Adjust two function calls together with a variable assignment SF Markus Elfring
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=bbb0866e-73b7-ff4a-e2d4-eec9d4a8219c@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=andy.shevchenko@gmail.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=jkosina@suse.cz \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vasilyev@ispras.ru \
/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