Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 119d53d4 authored by Belen Sarabia's avatar Belen Sarabia Committed by Lee Jones
Browse files

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: default avatarBelén Sarabia <belensarabia@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 85fdaf8e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);