From: Xiubo Li
Date: Wed, 15 Jan 2014 03:16:35 +0000 (+0800)
Subject: misc: sram: cleanup the code
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=590eca1e9f10b7ddf97718c6c4c12c73d0fd0083;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git
misc: sram: cleanup the code
Since the devm_gen_pool_create() is used, so the gen_pool_destroy()
here is redundant.
Signed-off-by: Xiubo Li
Acked-by: Philipp Zabel
Signed-off-by: Greg Kroah-Hartman
---
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index afe66571ce0b..e3e421d97ad4 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -87,8 +87,6 @@ static int sram_remove(struct platform_device *pdev)
if (gen_pool_avail(sram->pool) < gen_pool_size(sram->pool))
dev_dbg(&pdev->dev, "removed while SRAM allocated\n");
- gen_pool_destroy(sram->pool);
-
if (sram->clk)
clk_disable_unprepare(sram->clk);