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

Commit a9c705a8 authored by Fabio Estevam's avatar Fabio Estevam Committed by Alexandre Belloni
Browse files

rtc: mxc_v2: Remove unnecessary platform_get_resource() error check



devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 83c880f7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -296,9 +296,6 @@ static int mxc_rtc_probe(struct platform_device *pdev)
		return -ENOMEM;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res)
		return -ENODEV;

	pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(pdata->ioaddr))
		return PTR_ERR(pdata->ioaddr);