projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c59a01
)
clk: mvebu: armada-37xx-tbg: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Tue, 6 Sep 2022 07:23:22 +0000
(07:23 +0000)
committer
Stephen Boyd
<sboyd@kernel.org>
Sat, 1 Oct 2022 00:46:30 +0000
(17:46 -0700)
Return the value of_clk_add_hw_provider() directly instead of storing it
in another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link:
https://lore.kernel.org/r/20220906072322.337253-1-ye.xingchen@zte.com.cn
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/armada-37xx-tbg.c
patch
|
blob
|
history
diff --git
a/drivers/clk/mvebu/armada-37xx-tbg.c
b/drivers/clk/mvebu/armada-37xx-tbg.c
index 585a02e0b330f2a447ebf5a31e86fedeeabdd2d3..fc403ad735adeff8a07a21fe0fa00f567521848f 100644
(file)
--- a/
drivers/clk/mvebu/armada-37xx-tbg.c
+++ b/
drivers/clk/mvebu/armada-37xx-tbg.c
@@
-87,7
+87,7
@@
static int armada_3700_tbg_clock_probe(struct platform_device *pdev)
struct resource *res;
struct clk *parent;
void __iomem *reg;
- int i
, ret
;
+ int i;
hw_tbg_data = devm_kzalloc(&pdev->dev,
struct_size(hw_tbg_data, hws, NUM_TBG),
@@
-123,9
+123,7
@@
static int armada_3700_tbg_clock_probe(struct platform_device *pdev)
dev_err(dev, "Can't register TBG clock %s\n", name);
}
- ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data);
-
- return ret;
+ return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data);
}
static int armada_3700_tbg_clock_remove(struct platform_device *pdev)