linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message
@ 2021-06-09 14:11 Zhen Lei
  2021-06-11 13:54 ` [irqchip: irq/irqchip-next] irqchip/irq-imx-gpcv2: Remove " irqchip-bot for Zhen Lei
  2021-06-21 11:28 ` [PATCH 1/1] irqchip/irq-imx-gpcv2: remove " Fabio Estevam
  0 siblings, 2 replies; 3+ messages in thread
From: Zhen Lei @ 2021-06-09 14:11 UTC (permalink / raw)
  To: Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	linux-arm-kernel, linux-kernel
  Cc: Zhen Lei

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 drivers/irqchip/irq-imx-gpcv2.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index 7031ef44de4f30c..5b5a365dbd5e447 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
 	}
 
 	cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
-	if (!cd) {
-		pr_err("%pOF: kzalloc failed!\n", node);
+	if (!cd)
 		return -ENOMEM;
-	}
 
 	raw_spin_lock_init(&cd->rlock);
 
-- 
2.26.0.106.g9fadedd



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [irqchip: irq/irqchip-next] irqchip/irq-imx-gpcv2: Remove unnecessary oom message
  2021-06-09 14:11 [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message Zhen Lei
@ 2021-06-11 13:54 ` irqchip-bot for Zhen Lei
  2021-06-21 11:28 ` [PATCH 1/1] irqchip/irq-imx-gpcv2: remove " Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: irqchip-bot for Zhen Lei @ 2021-06-11 13:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: Zhen Lei, Marc Zyngier, tglx

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     76fc40ec22b9947351f6f9d37a86d47e72af4e50
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/76fc40ec22b9947351f6f9d37a86d47e72af4e50
Author:        Zhen Lei <thunder.leizhen@huawei.com>
AuthorDate:    Wed, 09 Jun 2021 22:11:50 +08:00
Committer:     Marc Zyngier <maz@kernel.org>
CommitterDate: Fri, 11 Jun 2021 14:19:47 +01:00

irqchip/irq-imx-gpcv2: Remove unnecessary oom message

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210609141150.14637-1-thunder.leizhen@huawei.com
---
 drivers/irqchip/irq-imx-gpcv2.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index 7031ef4..5b5a365 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
 	}
 
 	cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
-	if (!cd) {
-		pr_err("%pOF: kzalloc failed!\n", node);
+	if (!cd)
 		return -ENOMEM;
-	}
 
 	raw_spin_lock_init(&cd->rlock);
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message
  2021-06-09 14:11 [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message Zhen Lei
  2021-06-11 13:54 ` [irqchip: irq/irqchip-next] irqchip/irq-imx-gpcv2: Remove " irqchip-bot for Zhen Lei
@ 2021-06-21 11:28 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2021-06-21 11:28 UTC (permalink / raw)
  To: Zhen Lei
  Cc: Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, NXP Linux Team, linux-arm-kernel,
	linux-kernel

On Wed, Jun 9, 2021 at 11:11 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>
> Fixes scripts/checkpatch.pl warning:
> WARNING: Possible unnecessary 'out of memory' message
>
> Remove it can help us save a bit of memory.
>
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-21 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 14:11 [PATCH 1/1] irqchip/irq-imx-gpcv2: remove unnecessary oom message Zhen Lei
2021-06-11 13:54 ` [irqchip: irq/irqchip-next] irqchip/irq-imx-gpcv2: Remove " irqchip-bot for Zhen Lei
2021-06-21 11:28 ` [PATCH 1/1] irqchip/irq-imx-gpcv2: remove " Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).