FIXUP: CHROMIUM: iio: cros_ec: add support for single sensor hub FIFO
0day reports:
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c:
In function 'cros_ec_ring_event':
>> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c:356:33: warning:
>> 'current_timestamp' may be used uninitialized in this function
The warning actually reveals a worse problem: the code is reached from
a goto statement which leaves a mutex locked.
BUG=chromium:790771
TEST=Build and observe lack of warning
Change-Id: Ic448c7b4caf4b9889638eb3f74f99dfd4d8b1e87
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/802246
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
1 file changed