Skip to contentSkip to conversation

ASoC: sh: Remove redundant out of memory message

PATCH In review Cristian Done 2 participants 2 messages Feb 25, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: sh: Remove redundant out of memory message

---
 sound/soc/sh/fsi.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/sh/fsi.c +0 -1
index ead520182e26..6793dc359114 100644
@@ -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;
 	}
 
Signature · 1 line
2.11.0
#1 lore raw
Quoted 5 lines · Cristian Done
        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.