lkml.org 
[lkml]   [2014]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] misc: sram: cleanup the code
From
Date
Am Mittwoch, den 15.01.2014, 11:16 +0800 schrieb Xiubo Li:
> Since the devm_gen_pool_create() is used, so the gen_pool_destroy()
> here is redundant.
>
> Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
> ---
> drivers/misc/sram.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
> index afe66571..e3e421d 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);
>

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>

thanks
Philipp



\
 
 \ /
  Last update: 2014-01-15 11:21    [W:0.044 / U:1.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site