[alsa-devel] [PATCH] ASoC: sh: Remove redundant out of memory message

25 Feb
2017
25 Feb
'17
12:16 p.m.
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

25 Feb
25 Feb
11:20 p.m.
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.
2998
Age (days ago)
2998
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cristian Done
-
Fabio Estevam