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

Commit 22ecd65f authored by Guenter Roeck's avatar Guenter Roeck Committed by Sebastian Reichel
Browse files

power/reset: xgene: Drop devm_kfree



Calling devm_kfree is unnecessary. Drop it.

Cc: Loc Ho <lho@apm.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ef288f9f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -66,7 +66,6 @@ static int xgene_reboot_probe(struct platform_device *pdev)

	ctx->csr = of_iomap(pdev->dev.of_node, 0);
	if (!ctx->csr) {
		devm_kfree(&pdev->dev, ctx);
		dev_err(&pdev->dev, "can not map resource\n");
		return -ENODEV;
	}