ASoC: fsl_aud2htx: Remove redundant dev_err call in fsl_aud2htx_probe()
Subsystems (3)
PATCH 1/1 ASoC: fsl_aud2htx: Remove redundant dev_err call in fsl_aud2htx_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Reported-by Hulk Robot <[email protected]>
Signed-off-by yangerkun <[email protected]>
--- sound/soc/fsl/fsl_aud2htx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/fsl/fsl_aud2htx.c +1 -3
@@ -198,10 +198,8 @@ static int fsl_aud2htx_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); regs =devm_ioremap_resource (&pdev->dev, res); -if (IS_ERR (regs)) { -dev_err (&pdev->dev,"failed ioremap\n" ); +if (IS_ERR (regs))return PTR_ERR (regs); - } aud2htx->regmap =devm_regmap_init_mmio (&pdev->dev, regs, &fsl_aud2htx_regmap_config);
Signature · 1 line
2.25.4