[PATCH v2] clk: __clk_set_parent: set uninitialized variable

Rajendra Nayak rnayak at ti.com
Mon Jul 2 04:45:31 EDT 2012


On Monday 02 July 2012 02:12 PM, Rajendra Nayak wrote:
> I started looking at how to avoid this initing
> of i to clk->parents (which is correct for the logic
> used below, but somehow seems error prone if someone
> happens to change the logic without noticing the init
> part)
> This is what I came up with, not tested at all, but
> worth considering if Mike dislikes the idea of initing
> i to clk->parents.

s/clk->parents/clk->num_parents



More information about the linux-arm-kernel mailing list