From: Geert Uytterhoeven Date: Mon, 29 Jun 2015 07:14:33 +0000 (+0200) Subject: iio: sx9500: Add missing init in sx9500_buffer_pre{en,dis}able() X-Git-Tag: omap-for-v4.3/fixes-merge-window~229^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897993fecbb8e6292aaa4079815f0793dcf6de8b;p=pandora-kernel.git iio: sx9500: Add missing init in sx9500_buffer_pre{en,dis}able() drivers/iio/proximity/sx9500.c: In function ‘sx9500_buffer_preenable’: drivers/iio/proximity/sx9500.c:682: warning: ‘ret’ may be used uninitialized in this function drivers/iio/proximity/sx9500.c: In function ‘sx9500_buffer_predisable’: drivers/iio/proximity/sx9500.c:706: warning: ‘ret’ may be used uninitialized in this function If active_scan_mask is empty, it will loop once more over all channels, doing nothing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Vlad Dogaru Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed