[PATCH 06/10] clk: Add support for a generic clock multiplexer

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Apr 18 09:54:35 EDT 2011


On Mon, Apr 18, 2011 at 03:33:53PM +0200, Sascha Hauer wrote:
> On Mon, Apr 18, 2011 at 03:15:27PM +0200, Uwe Kleine-König wrote:
> > On Fri, Apr 15, 2011 at 09:08:11PM +0200, Sascha Hauer wrote:
> > > +
> > > +static int clk_mux_set_parent(struct clk *clk, struct clk *parent)
> > > +{
> > > +	struct clk_mux *mux = to_clk_mux(clk);
> > > +	u32 val;
> > > +	int i;
> > > +	unsigned long flags = 0;
> > = 0 isn't needed. (Or does gcc wail without it?)
> 
> At least my gcc is not smart engough for this. flags may be used unitialized.
Then please use

	unsigned long uninitialized_var(flags);

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list