Re: [PATCH v2] clk: samsung: Remove useless check for return value of samsung_clk_init

From: Tomasz Figa
Date: Sat Jun 18 2016 - 10:35:21 EST


Hi,

2016-05-10 2:32 GMT+09:00 Krzysztof Kozlowski <krzk@xxxxxxxxxx>:
> The samsung_clk_init() cannot return NULL. Either it returns allocated
> memory or it panics.
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> Reviewed-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx>
>
> ---
>
> Changes since v1:
> 1. Remove the check from most of other Samsung clock drivers (suggested
> by Javier).
> ---
> drivers/clk/samsung/clk-exynos4.c | 2 --
> drivers/clk/samsung/clk-exynos5250.c | 3 +--
> drivers/clk/samsung/clk-exynos5420.c | 2 --
> drivers/clk/samsung/clk-exynos5440.c | 2 --
> drivers/clk/samsung/clk-s3c2410.c | 2 --
> drivers/clk/samsung/clk-s3c2412.c | 2 --
> drivers/clk/samsung/clk-s3c2443.c | 2 --
> drivers/clk/samsung/clk-s3c64xx.c | 2 --
> drivers/clk/samsung/clk-s5pv210.c | 2 --
> 9 files changed, 1 insertion(+), 18 deletions(-)

Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx>

Best regards,
Tomasz