[PATCH] ASoC: fsl: Simplify an error message

Shengjiu Wang shengjiu.wang at gmail.com
Wed Apr 19 14:18:29 AEST 2023


On Sun, Apr 16, 2023 at 2:29 PM Christophe JAILLET <
christophe.jaillet at wanadoo.fr> wrote:

> dev_err_probe() already display the error code. There is no need to
> duplicate it explicitly in the error message.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
>

Acked-by: Shengjiu Wang <shengjiu.wang at gmail.com>

Best regards
wang shengjiu

> ---
>  sound/soc/fsl/fsl-asoc-card.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
> index bffa1048d31e..40870668ee24 100644
> --- a/sound/soc/fsl/fsl-asoc-card.c
> +++ b/sound/soc/fsl/fsl-asoc-card.c
> @@ -858,7 +858,7 @@ static int fsl_asoc_card_probe(struct platform_device
> *pdev)
>
>         ret = devm_snd_soc_register_card(&pdev->dev, &priv->card);
>         if (ret) {
> -               dev_err_probe(&pdev->dev, ret, "snd_soc_register_card
> failed: %d\n", ret);
> +               dev_err_probe(&pdev->dev, ret, "snd_soc_register_card
> failed\n");
>                 goto asrc_fail;
>         }
>
> --
> 2.34.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20230419/0df5e8ce/attachment-0001.htm>


More information about the Linuxppc-dev mailing list