Re: [PATCH 11/19] regmap: regmap: avoid spurious warning in regmap_read_debugfs

2013-01-26 Thread Arnd Bergmann
From: Russell King Gcc warns about the case where regmap_read_debugfs tries to walk an empty map->debugfs_off_cache list, which would results in uninitialized variable getting returned, if we hadn't checked the same condition just before that. After an originally suggested inferior patch from Ar

Re: [PATCH 11/19] regmap: regmap: avoid spurious warning in regmap_read_debugfs

2013-01-26 Thread Mark Brown
On Sat, Jan 26, 2013 at 11:45:35AM +, Arnd Bergmann wrote: > Gcc warns about the case where regmap_read_debugfs tries to walk an > empty map->debugfs_off_cache list, which would results in uninitialized > variable getting returned, if we hadn't checked the same condition > just before that. A