Re: [PATCH] iio: stmpe-adc: avoid harmless clang warning

2019-03-22 Thread Arnd Bergmann
On Fri, Mar 22, 2019 at 3:58 PM Nathan Chancellor wrote: > > On Fri, Mar 22, 2019 at 03:08:39PM +0100, Arnd Bergmann wrote: > > Clang points out a control flow bug, which happens to be harmless: > > > > drivers/iio/adc/stmpe-adc.c:204:13: error: variable 'data' is used > > uninitialized whenever

Re: [PATCH] iio: stmpe-adc: avoid harmless clang warning

2019-03-22 Thread Nathan Chancellor
On Fri, Mar 22, 2019 at 03:08:39PM +0100, Arnd Bergmann wrote: > Clang points out a control flow bug, which happens to be harmless: > > drivers/iio/adc/stmpe-adc.c:204:13: error: variable 'data' is used > uninitialized whenever 'if' condition is false > [-Werror,-Wsometimes-uninitialized] > > T

[PATCH] iio: stmpe-adc: avoid harmless clang warning

2019-03-22 Thread Arnd Bergmann
Clang points out a control flow bug, which happens to be harmless: drivers/iio/adc/stmpe-adc.c:204:13: error: variable 'data' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] The warning is sensible here, so let's just avoid the case by adding appropria