From: Wei Yongjun Date: Sat, 20 Aug 2016 15:30:16 +0000 (+0000) Subject: MMC: meson: remove redundant return value check of platform_get_resource() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=979ca6699467cc6510f2328c0f1b637003378f8f;p=deliverable%2Flinux.git MMC: meson: remove redundant return value check of platform_get_resource() Remove unneeded error handling on the result of a call to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Wei Yongjun Signed-off-by: Kevin Hilman --- diff --git a/drivers/mmc/host/meson-gxbb.c b/drivers/mmc/host/meson-gxbb.c index 10eac41cf31a..96cd8830a124 100644 --- a/drivers/mmc/host/meson-gxbb.c +++ b/drivers/mmc/host/meson-gxbb.c @@ -811,10 +811,6 @@ static int meson_mmc_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - ret = -ENODEV; - goto free_host; - } host->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(host->regs)) { ret = PTR_ERR(host->regs);