From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-c6x-dev@linux-c6x.org,
Aurelien Jacquiot <a-jacquiot@ti.com>,
Mark Salter <msalter@redhat.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org, Wolfram Sang <wsa@the-dreams.de>
Subject: [PATCH 2/4] C6X/megamode-pic: Delete an error message for a failed memory allocation in init_megamod_pic()
Date: Thu, 11 May 2017 15:47:28 +0200 [thread overview]
Message-ID: <03061c31-8a58-59a4-e76a-a4380e7a1935@users.sourceforge.net> (raw)
In-Reply-To: <1b8c2efb-1096-3b78-9100-e20c55b6ecf1@users.sourceforge.net>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 11 May 2017 15:00:30 +0200
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
arch/c6x/platforms/megamod-pic.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/c6x/platforms/megamod-pic.c b/arch/c6x/platforms/megamod-pic.c
index 72b5f143c105..cf0ebf25e42f 100644
--- a/arch/c6x/platforms/megamod-pic.c
+++ b/arch/c6x/platforms/megamod-pic.c
@@ -209,7 +209,5 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np)
- if (!pic) {
- pr_err("%s: Could not alloc PIC structure.\n", np->full_name);
+ if (!pic)
return NULL;
- }
pic->irqhost = irq_domain_add_linear(np, NR_COMBINERS * 32,
&megamod_domain_ops, pic);
--
2.12.3
next prev parent reply other threads:[~2017-05-11 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 13:45 [PATCH 0/4] C64x+ Megamodule PIC: Adjustments for three functions SF Markus Elfring
2017-05-11 13:46 ` [PATCH 1/4] C6X/megamode-pic: Improve a size determination in init_megamod_pic() SF Markus Elfring
2017-05-11 13:47 ` SF Markus Elfring [this message]
2017-05-11 13:48 ` [PATCH 3/4] C6X/megamode-pic: Delete an unnecessary return statement in megamod_pic_init() SF Markus Elfring
2017-05-11 13:49 ` [PATCH 4/4] C6X/megamode-pic: Fix a typo in a comment line 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=03061c31-8a58-59a4-e76a-a4380e7a1935@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=a-jacquiot@ti.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-kernel@vger.kernel.org \
--cc=msalter@redhat.com \
--cc=wsa@the-dreams.de \
/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®