]> git.baikalelectronics.ru Git - kernel.git/commit
iio: sx9500: Add missing init in sx9500_buffer_pre{en,dis}able()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 29 Jun 2015 07:14:33 +0000 (09:14 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:17 +0000 (11:48 +0100)
commit82010df1ad7d2c0528c78a6ba335978caede4790
tree1efa7547d59dd661b75709da975ac19cde3c289c
parent7eba33841af61bd404b83d813941f68898813acd
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 <geert@linux-m68k.org>
Reviewed-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/sx9500.c