ASoC: fsl: fsl_spdif: No need to check the return value of platform_get_resource()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 4 Nov 2013 11:51:20 +0000 (09:51 -0200)
committerMark Brown <broonie@linaro.org>
Mon, 4 Nov 2013 16:59:40 +0000 (08:59 -0800)
When using devm_ioremap_resource(), we do not need to check the return value of
platform_get_resource(), so just remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_spdif.c

index e1bf5ef31bdd9fda6e6c166d7234edcedbd64e3c..bab95d7ad0acbc0866a42eef349a7514eb5d7555 100644 (file)
@@ -1107,11 +1107,6 @@ static int fsl_spdif_probe(struct platform_device *pdev)
 
        /* Get the addresses and IRQ */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(&pdev->dev, "could not determine device resources\n");
-               return -ENXIO;
-       }
-
        regs = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(regs))
                return PTR_ERR(regs);