* [PATCH] icst307: Add missing increment
@ 2009-10-26 21:33 Roel Kluin
2009-10-26 21:46 ` [PATCH] icst525: " Roel Kluin
2009-10-27 19:38 ` [PATCH] icst307: " Russell King - ARM Linux
0 siblings, 2 replies; 4+ messages in thread
From: Roel Kluin @ 2009-10-26 21:33 UTC (permalink / raw)
To: linux-arm-kernel
Without this increment the loop can only break if it does in the
first iteration.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/arch/arm/common/icst307.c b/arch/arm/common/icst307.c
index 6d094c1..b255fbf 100644
--- a/arch/arm/common/icst307.c
+++ b/arch/arm/common/icst307.c
@@ -55,7 +55,7 @@ icst307_khz_to_vco(const struct icst307_params *p, unsigned long freq)
*/
if (f > 6000 && f <= p->vco_max)
break;
- } while (i < ARRAY_SIZE(idx2s));
+ } while (++i < ARRAY_SIZE(idx2s));
if (i >= ARRAY_SIZE(idx2s))
return vco;
@@ -117,7 +117,7 @@ icst307_ps_to_vco(const struct icst307_params *p, unsigned long period)
*/
if (f >= ps && f < 1000000000UL / 6000 + 1)
break;
- } while (i < ARRAY_SIZE(idx2s));
+ } while (++i < ARRAY_SIZE(idx2s));
if (i >= ARRAY_SIZE(idx2s))
return vco;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] icst525: Add missing increment
2009-10-26 21:33 [PATCH] icst307: Add missing increment Roel Kluin
@ 2009-10-26 21:46 ` Roel Kluin
2009-10-27 19:38 ` Russell King - ARM Linux
2009-10-27 19:38 ` [PATCH] icst307: " Russell King - ARM Linux
1 sibling, 1 reply; 4+ messages in thread
From: Roel Kluin @ 2009-10-26 21:46 UTC (permalink / raw)
To: linux-arm-kernel
Without this increment the loop can only break if it does in the
first iteration.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
arch/arm/common/icst525.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Same issue, different file.
diff --git a/arch/arm/common/icst525.c b/arch/arm/common/icst525.c
index 3d377c5..0aef96a 100644
--- a/arch/arm/common/icst525.c
+++ b/arch/arm/common/icst525.c
@@ -53,7 +53,7 @@ icst525_khz_to_vco(const struct icst525_params *p, unsigned long freq)
*/
if (f > 10000 && f <= p->vco_max)
break;
- } while (i < ARRAY_SIZE(idx2s));
+ } while (++i < ARRAY_SIZE(idx2s));
if (i >= ARRAY_SIZE(idx2s))
return vco;
@@ -116,7 +116,7 @@ icst525_ps_to_vco(const struct icst525_params *p, unsigned long period)
*/
if (f >= ps && f < 100000)
break;
- } while (i < ARRAY_SIZE(idx2s));
+ } while (++i < ARRAY_SIZE(idx2s));
if (i >= ARRAY_SIZE(idx2s))
return vco;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] icst307: Add missing increment
2009-10-26 21:33 [PATCH] icst307: Add missing increment Roel Kluin
2009-10-26 21:46 ` [PATCH] icst525: " Roel Kluin
@ 2009-10-27 19:38 ` Russell King - ARM Linux
1 sibling, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2009-10-27 19:38 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Oct 26, 2009 at 10:33:04PM +0100, Roel Kluin wrote:
> Without this increment the loop can only break if it does in the
> first iteration.
Ok.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] icst525: Add missing increment
2009-10-26 21:46 ` [PATCH] icst525: " Roel Kluin
@ 2009-10-27 19:38 ` Russell King - ARM Linux
0 siblings, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2009-10-27 19:38 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Oct 26, 2009 at 10:46:35PM +0100, Roel Kluin wrote:
> Without this increment the loop can only break if it does in the
> first iteration.
Ok.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-27 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 21:33 [PATCH] icst307: Add missing increment Roel Kluin
2009-10-26 21:46 ` [PATCH] icst525: " Roel Kluin
2009-10-27 19:38 ` Russell King - ARM Linux
2009-10-27 19:38 ` [PATCH] icst307: " Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).