summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-27 00:41:16 +0200
committerStephen Boyd <sboyd@kernel.org>2020-05-27 08:40:41 +0200
commit6f4d3c13b71c6ebd4d04d0adca53859131c595eb (patch)
tree568ddd953586f36ac23fc71d0c2046bac1697977 /drivers/clk
parentclk: clk-xgene: Fix a typo in Kconfig (diff)
downloadlinux-6f4d3c13b71c6ebd4d04d0adca53859131c595eb.tar.xz
linux-6f4d3c13b71c6ebd4d04d0adca53859131c595eb.zip
clk: versatile: remove redundant assignment to pointer clk
The pointer clk is being initialized with a value that is never read and is being updated with a new value later on. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lkml.kernel.org/r/20200526224116.63549-1-colin.king@canonical.com Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/versatile/clk-versatile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/versatile/clk-versatile.c b/drivers/clk/versatile/clk-versatile.c
index fd54d5c0251c..8ed7a179f651 100644
--- a/drivers/clk/versatile/clk-versatile.c
+++ b/drivers/clk/versatile/clk-versatile.c
@@ -56,7 +56,7 @@ static const struct clk_icst_desc versatile_auxosc_desc __initconst = {
static void __init cm_osc_setup(struct device_node *np,
const struct clk_icst_desc *desc)
{
- struct clk *clk = ERR_PTR(-EINVAL);
+ struct clk *clk;
const char *clk_name = np->name;
const char *parent_name;