From: Dimitris Papastamos Date: Wed, 20 Feb 2013 12:15:22 +0000 (+0000) Subject: regmap: debugfs: Simplify calculation of `c->max_reg' X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~132^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=480738de0e076d759a973be623fac195cb901b82;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed