From: Fabio Estevam Date: Mon, 4 Nov 2013 11:51:20 +0000 (-0200) Subject: ASoC: fsl: fsl_spdif: No need to check the return value of platform_get_resource() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9c1fc209138a7c1ee439c7b05fde484441c84e7e;p=openwrt%2Fstaging%2Fblogic.git ASoC: fsl: fsl_spdif: No need to check the return value of platform_get_resource() 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index e1bf5ef31bdd..bab95d7ad0ac 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -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);