All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()
@ 2018-02-16 10:44 ` SF Markus Elfring
  0 siblings, 0 replies; 4+ messages in thread
From: SF Markus Elfring @ 2018-02-16 10:44 UTC (permalink / raw)
  To: linux-ide, Bartlomiej Zolnierkiewicz, Tejun Heo; +Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 16 Feb 2018 11:34:53 +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/ata/pata_mpc52xx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index 9730125530f6..f1d352d5f128 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op)
 	/* Prepare our private structure */
 	priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC);
 	if (!priv) {
-		dev_err(&op->dev, "error allocating private structure\n");
 		rv = -ENOMEM;
 		goto err1;
 	}
-- 
2.16.1


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

* [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()
@ 2018-02-16 10:44 ` SF Markus Elfring
  0 siblings, 0 replies; 4+ messages in thread
From: SF Markus Elfring @ 2018-02-16 10:44 UTC (permalink / raw)
  To: linux-ide, Bartlomiej Zolnierkiewicz, Tejun Heo; +Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 16 Feb 2018 11:34:53 +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/ata/pata_mpc52xx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index 9730125530f6..f1d352d5f128 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op)
 	/* Prepare our private structure */
 	priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC);
 	if (!priv) {
-		dev_err(&op->dev, "error allocating private structure\n");
 		rv = -ENOMEM;
 		goto err1;
 	}
-- 
2.16.1

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

* Re: [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_prob
  2018-02-16 10:44 ` SF Markus Elfring
@ 2018-02-18 13:23   ` Tejun Heo
  -1 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2018-02-18 13:23 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-ide, Bartlomiej Zolnierkiewicz, LKML, kernel-janitors

On Fri, Feb 16, 2018 at 11:44:13AM +0100, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Fri, 16 Feb 2018 11:34:53 +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>

Applied to libata/for-4.17.

Thanks.

-- 
tejun

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

* Re: [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()
@ 2018-02-18 13:23   ` Tejun Heo
  0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2018-02-18 13:23 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-ide, Bartlomiej Zolnierkiewicz, LKML, kernel-janitors

On Fri, Feb 16, 2018 at 11:44:13AM +0100, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Fri, 16 Feb 2018 11:34:53 +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>

Applied to libata/for-4.17.

Thanks.

-- 
tejun

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

end of thread, other threads:[~2018-02-18 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-16 10:44 [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe() SF Markus Elfring
2018-02-16 10:44 ` SF Markus Elfring
2018-02-18 13:23 ` [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_prob Tejun Heo
2018-02-18 13:23   ` [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe() Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.