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

Fabio Estevam festevam at gmail.com
Sat Feb 25 22:20:38 CET 2017


On Sat, Feb 25, 2017 at 7:16 AM, Cristian Done <done.cristian at 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.


More information about the Alsa-devel mailing list