Commit ec1c674f authored by Thierry Reding's avatar Thierry Reding Committed by Jassi Brar
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 8aed5719
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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;
}