From: Belen Sarabia Date: Sat, 25 Mar 2017 18:26:47 +0000 (+0100) Subject: mfd: ipaq-micro: Delete redundant return value check of platform_get_resource() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=119d53d44cb0da2e3140106a9e359fc53bd6d837;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: ipaq-micro: Delete redundant return value check of platform_get_resource() devm_ioremap_resource does checks on the resource. No need to duplicate this in the driver. Signed-off-by: Belén Sarabia Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index df16fd1df68b..124aad2b1d02 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c @@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev) micro->dev = &pdev->dev; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -EINVAL; - micro->base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(micro->base)) return PTR_ERR(micro->base);