commit | 480738de0e076d759a973be623fac195cb901b82 | [log] [tgz] |
---|---|---|
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | Wed Feb 20 12:15:22 2013 +0000 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Mon Mar 04 10:33:02 2013 +0800 |
tree | 345fc58ee2cfd1aeec8356ddfa042a57a7cb34d2 | |
parent | 6dbe51c251a327e012439c4772097a13df43c5b8 [diff] |
regmap: debugfs: Simplify calculation of `c->max_reg' We don't need to use any of the file position information to calculate the base and max register of each block. Just use the counter directly. Set `i = base' at the top to avoid GCC flow analysis bugs. The value of `i' can never be undefined or 0 in the if (c) { ... }. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>