| Date | Sat, 26 Jan 2013 12:42:27 +0800 | From | Mark Brown <> | Subject | Re: [PATCH 11/19] regmap: avoid undefined return from regmap_read_debugfs |
| |
On Fri, Jan 25, 2013 at 02:14:28PM +0000, Arnd Bergmann wrote: > Gcc warns about the case where regmap_read_debugfs tries
Are you sure about that function name?
> to walk an empty map->debugfs_off_cache list, which results > in uninitialized variable getting returned.
> Setting this variable to 0 first avoids the warning and > the potentially undefined value.
This probably won't apply against current code as there's already a better fix there, in general just picking a value to initialise masks errors. [unhandled content-type:application/pgp-signature] |