mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04: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
1 changed files with 0 additions and 8 deletions
|
|
@ -339,14 +339,6 @@ static int cmdq_remove(struct platform_device *pdev)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue