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

Tomasz Figa tomasz.figa at gmail.com
Sat Jun 18 07:35:15 PDT 2016


Hi,

2016-05-10 2:32 GMT+09:00 Krzysztof Kozlowski <krzk at kernel.org>:
> The samsung_clk_init() cannot return NULL. Either it returns allocated
> memory or it panics.
>
> Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>
> Reviewed-by: Javier Martinez Canillas <javier at osg.samsung.com>
>
> ---
>
> 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 at gmail.com>

Best regards,
Tomasz



More information about the linux-arm-kernel mailing list