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:
Родитель
8aed571955
Коммит
ec1c674f0a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче