Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1313070 > unrolled thread
| Started by | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| First post | 2016-01-20 11:20 +0100 |
| Last post | 2016-01-21 01:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v3 1/4] clk: s2mps11: merge two for loops in one Andi Shyti <andi.shyti@samsung.com> - 2016-01-20 11:20 +0100
Re: [PATCH v3 1/4] clk: s2mps11: merge two for loops in one Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-21 01:30 +0100
| From | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| Date | 2016-01-20 11:20 +0100 |
| Subject | [PATCH v3 1/4] clk: s2mps11: merge two for loops in one |
| Message-ID | <qSY1R-4Y7-49@gated-at.bofh.it> |
the driver already loops once, there is no reason to loop again
for a different purpose. Merge the second loop into the first.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
drivers/clk/clk-s2mps11.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
index d266299..e7b97f4 100644
--- a/drivers/clk/clk-s2mps11.c
+++ b/drivers/clk/clk-s2mps11.c
@@ -244,12 +244,6 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
ret = -ENOMEM;
goto err_reg;
}
- }
-
- for (i = 0; i < S2MPS11_CLKS_NUM; i++) {
- /* Skip clocks not present on S2MPS14 */
- if (!clks_init[i].name)
- continue;
clk_table[i] = s2mps11_clks[i].clk;
}
--
2.7.0.rc3
[toc] | [next] | [standalone]
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Date | 2016-01-21 01:30 +0100 |
| Message-ID | <qTbiq-5EG-7@gated-at.bofh.it> |
| In reply to | #1313070 |
On 20.01.2016 19:14, Andi Shyti wrote: > the driver already loops once, there is no reason to loop again I pointed this at v2: s/the/The/ Apart from that: Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Best regards, Krzysztof
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web