mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 11:43:40 +00:00
power/reset: xgene: Drop devm_kfree
Calling devm_kfree is unnecessary. Drop it. Cc: Loc Ho <lho@apm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
ef288f9f65
commit
22ecd65f40
@ -66,7 +66,6 @@ static int xgene_reboot_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
ctx->csr = of_iomap(pdev->dev.of_node, 0);
|
ctx->csr = of_iomap(pdev->dev.of_node, 0);
|
||||||
if (!ctx->csr) {
|
if (!ctx->csr) {
|
||||||
devm_kfree(&pdev->dev, ctx);
|
|
||||||
dev_err(&pdev->dev, "can not map resource\n");
|
dev_err(&pdev->dev, "can not map resource\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user