mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
mailbox: mtk-cmdq: Remove needless devm_kfree() calls
Memory allocated through device-managed functions doesn't need to be explicitly freed, so these calls can be removed. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
8aed571955
commit
ec1c674f0a
@ -339,14 +339,6 @@ static int cmdq_remove(struct platform_device *pdev)
|
|||||||
|
|
||||||
clk_unprepare(cmdq->clock);
|
clk_unprepare(cmdq->clock);
|
||||||
|
|
||||||
if (cmdq->mbox.chans)
|
|
||||||
devm_kfree(&pdev->dev, cmdq->mbox.chans);
|
|
||||||
|
|
||||||
if (cmdq->thread)
|
|
||||||
devm_kfree(&pdev->dev, cmdq->thread);
|
|
||||||
|
|
||||||
devm_kfree(&pdev->dev, cmdq);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user