Re: [Resend][PATCH] drivers/thermal: remove unnecessary structure members allocated_tzp

From: Daniel Lezcano
Date: Mon Oct 26 2020 - 14:49:01 EST


On 26/10/2020 02:50, Bernard wrote:
> Struct power_allocator_params element allocated_tzp is only used
> in unbind to kfree the kzalloc space.
> Maybe we don’t have to need this member to mark, also, kfree will
> handle NULL point, there is no risk.
> This change is to make the code run a bit fast.
>
> Signed-off-by: Bernard Zhao <bernard@xxxxxxxx>

Applied, thanks

[ ... ]

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog