diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2016-05-09 19:32:31 +0200 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-06-02 11:17:57 +0200 |
commit | dfb86ade53a94963eafe0d78360616faa90cde3b (patch) | |
tree | 37885b0a7dfc6f46d6ae85fcd2df174b1c1835d4 /drivers/clk/samsung/clk-s3c64xx.c | |
parent | 9da752f0e37022e40de8f00891be958d351f4526 (diff) | |
download | op-kernel-dev-dfb86ade53a94963eafe0d78360616faa90cde3b.zip op-kernel-dev-dfb86ade53a94963eafe0d78360616faa90cde3b.tar.gz |
clk: samsung: Remove useless check for return value of samsung_clk_init
The samsung_clk_init() cannot return NULL. Either it returns allocated
memory or it panics.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk/samsung/clk-s3c64xx.c')
-rw-r--r-- | drivers/clk/samsung/clk-s3c64xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/clk/samsung/clk-s3c64xx.c b/drivers/clk/samsung/clk-s3c64xx.c index 60aa775..a48bd5f 100644 --- a/drivers/clk/samsung/clk-s3c64xx.c +++ b/drivers/clk/samsung/clk-s3c64xx.c @@ -471,8 +471,6 @@ void __init s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, } ctx = samsung_clk_init(np, reg_base, NR_CLKS); - if (!ctx) - panic("%s: unable to allocate context.\n", __func__); /* Register external clocks. */ if (!np) |