drivers/bmp180: fix potentially use of uninitialized variable

This was reported by scan-build
This commit is contained in:
Alexandre Abadie 2019-10-22 19:30:12 +02:00
parent efbd758786
commit 679a07833b
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -106,7 +106,7 @@ int bmp180_init(bmp180_t *dev, const bmp180_params_t *params)
int16_t bmp180_read_temperature(const bmp180_t *dev)
{
int32_t ut, b5;
int32_t ut = 0, b5;
/* Acquire exclusive access */
i2c_acquire(DEV_I2C);