Re: [PATCH] iio: ssp_sensors: avoid uninitialized variable usage

2019-03-24 Thread Jonathan Cameron
On Fri, 22 Mar 2019 08:01:19 -0700 Nathan Chancellor wrote: > On Fri, Mar 22, 2019 at 03:09:22PM +0100, Arnd Bergmann wrote: > > clang points out that 'calculated_time' is only sometimes > > initialized here, which leads to incorrect data being > > passed into another function: > > > > drivers/i

Re: [PATCH] iio: ssp_sensors: avoid uninitialized variable usage

2019-03-22 Thread Nathan Chancellor
On Fri, Mar 22, 2019 at 03:09:22PM +0100, Arnd Bergmann wrote: > clang points out that 'calculated_time' is only sometimes > initialized here, which leads to incorrect data being > passed into another function: > > drivers/iio/common/ssp_sensors/ssp_iio.c:95:6: error: variable > 'calculated_time'