projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aed571
)
mailbox: mtk-cmdq: Remove needless devm_kfree() calls
author
Thierry Reding
<treding@nvidia.com>
Thu, 20 Dec 2018 17:19:56 +0000
(18:19 +0100)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Fri, 21 Dec 2018 22:49:25 +0000
(16:49 -0600)
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>
drivers/mailbox/mtk-cmdq-mailbox.c
patch
|
blob
|
history
diff --git
a/drivers/mailbox/mtk-cmdq-mailbox.c
b/drivers/mailbox/mtk-cmdq-mailbox.c
index
d9c3ec3
..
2281178
100644
(file)
--- a/
drivers/mailbox/mtk-cmdq-mailbox.c
+++ b/
drivers/mailbox/mtk-cmdq-mailbox.c
@@
-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;
}