alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: sh: Remove redundant out of memory message
@ 2017-02-25 10:16 Cristian Done
  2017-02-25 21:20 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Done @ 2017-02-25 10:16 UTC (permalink / raw)
  To: perex, tiwai; +Cc: Cristian Done, alsa-devel, broonie, lgirdwood

Signed-off-by: Cristian Done <done.cristian@gmail.com>
---
 sound/soc/sh/fsi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index ead520182e26..6793dc359114 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1964,7 +1964,6 @@ static int fsi_probe(struct platform_device *pdev)
 
 	master = devm_kzalloc(&pdev->dev, sizeof(*master), GFP_KERNEL);
 	if (!master) {
-		dev_err(&pdev->dev, "Could not allocate master\n");
 		return -ENOMEM;
 	}
 
-- 
2.11.0

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

* Re: [PATCH] ASoC: sh: Remove redundant out of memory message
  2017-02-25 10:16 [PATCH] ASoC: sh: Remove redundant out of memory message Cristian Done
@ 2017-02-25 21:20 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2017-02-25 21:20 UTC (permalink / raw)
  To: Cristian Done
  Cc: Liam Girdwood, alsa-devel@alsa-project.org, Mark Brown,
	Takashi Iwai

On Sat, Feb 25, 2017 at 7:16 AM, Cristian Done <done.cristian@gmail.com> wrote:

>         master = devm_kzalloc(&pdev->dev, sizeof(*master), GFP_KERNEL);
>         if (!master) {
> -               dev_err(&pdev->dev, "Could not allocate master\n");
>                 return -ENOMEM;
>         }

As you are removing the dev_err line you can also remove the if brackets.

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

end of thread, other threads:[~2017-02-25 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-25 10:16 [PATCH] ASoC: sh: Remove redundant out of memory message Cristian Done
2017-02-25 21:20 ` 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).