]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
regmap: Add missing initialization of this_page
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 22 Apr 2014 10:47:29 +0000 (12:47 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 1 May 2014 03:45:58 +0000 (20:45 -0700)
drivers/base/regmap/regmap.c: In function ‘_regmap_range_multi_paged_reg_write’:
drivers/base/regmap/regmap.c:1665: warning: ‘this_page’ may be used uninitialized in this function

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap.c

index 9596f3048939dbc682b509c28717a0c152930dde..35869755d46491cee13a6e4d3da7806388a8f485 100644 (file)
@@ -1665,7 +1665,7 @@ static int _regmap_range_multi_paged_reg_write(struct regmap *map,
        int ret;
        int i, n;
        struct reg_default *base;
-       unsigned int this_page;
+       unsigned int this_page = 0;
        /*
         * the set of registers are not neccessarily in order, but
         * since the order of write must be preserved this algorithm