[PATCH] CLKDEV: remove extra clk_find iterations

Ben Dooks ben-linux at fluff.org
Sun Feb 28 11:12:16 EST 2010


On Sat, Feb 27, 2010 at 02:05:34PM +0530, Viresh KUMAR wrote:
> Signed-off-by: Viresh Kumar <viresh.kumar at st.com>

hmm, looks like your mailer has reformatted this message

and two, please add a useful description, what is going on here?

> ---
>  arch/arm/common/clkdev.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> =======================================
> 
> diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c
> index aae5bc0..736dfba 100644
> 
> --- a/arch/arm/common/clkdev.c
> 
> +++ b/arch/arm/common/clkdev.c
> 
> @@ -55,7 +55,10 @@
> 
> static·struct·clk·*clk_find(const·char·*dev_id,·const·char·*con_id)
> » » if·(match·==·0)
> » » » continue;
> +» » if·(match·==·3)
> +» » » return·p->clk;
> +
> » » if·(match·>·best)·{
> » » » clk·=·p->clk;
> » » » best·=·match;
> 
> -- 1.6.0.2
> 
> 
> 
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.




More information about the linux-arm-kernel mailing list