From: Paul Bolle Date: Mon, 8 Oct 2012 20:06:30 +0000 (+0200) Subject: regmap: silence GCC warning X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~61^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8f28cfad8cd44d7c34b166d0e5ace1125dbee1f;p=pandora-kernel.git regmap: silence GCC warning Building regmap.o triggers this GCC warning: drivers/base/regmap/regmap.c: In function ‘regmap_raw_read’: drivers/base/regmap/regmap.c:1172:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] Long story short: Jakub Jelinek pointed out that there is a type mismatch between 'num' in regmap_volatile_range() and 'val_count' in regmap_raw_read(). And indeed, converting 'num' to the type of 'val_count' (ie, size_t) makes this warning go away. Signed-off-by: Paul Bolle Signed-off-by: Mark Brown --- Reading git-diff-tree failed