ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 4 Jul 2016 15:08:07 +0000 (15:08 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Jul 2016 15:28:30 +0000 (17:28 +0200)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c

index fab52347c6d71d943196cc636fbf50285ac7b773..687a8f83dbe5ac05d314e2002ed1eccbf769ba08 100644 (file)
@@ -599,10 +599,8 @@ static int sun4i_i2s_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, "Can't request IO region\n");
+       if (IS_ERR(regs))
                return PTR_ERR(regs);
-       }
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0) {