Re: [PATCH v2] regmap: debugfs: Simplify calculation of`c->max_reg'
From: Dimitris Papastamos
Date: Thu Feb 14 2013 - 09:37:58 EST
On Thu, Feb 14, 2013 at 02:14:40PM +0000, Mark Brown wrote:
> On Thu, Feb 14, 2013 at 02:04:04PM +0000, Dimitris Papastamos wrote:
> > - unsigned int i, ret;
> > + unsigned int i = 0, ret;
> Coding style and are you sure this is a good default.
Hm, it doesn't really matter. I guess the proper fix would
be to set i = base at the start, but that would not change
anything in terms of the actual code flow, it would only silence
the gcc flow analysis bug.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/