ASoC: sh: Remove redundant out of memory message
PATCH 1/1 ASoC: sh: Remove redundant out of memory message
Signed-off-by Cristian Done <[email protected]>
--- sound/soc/sh/fsi.c | 1 - 1 file changed, 1 deletion(-)
sound/soc/sh/fsi.c +0 -1
@@ -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
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.