diff options
author | Dimitris Papastamos | 2013-02-20 13:15:22 +0100 |
---|---|---|
committer | Mark Brown | 2013-03-04 03:33:02 +0100 |
commit | 480738de0e076d759a973be623fac195cb901b82 (patch) | |
tree | 345fc58ee2cfd1aeec8356ddfa042a57a7cb34d2 /drivers/vfio | |
parent | Linux 3.9-rc1 (diff) | |
download | kernel-qcow2-linux-480738de0e076d759a973be623fac195cb901b82.tar.gz kernel-qcow2-linux-480738de0e076d759a973be623fac195cb901b82.tar.xz kernel-qcow2-linux-480738de0e076d759a973be623fac195cb901b82.zip |
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>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions