diff --git a/drivers/sensor/adxl362/adxl362.c b/drivers/sensor/adxl362/adxl362.c index c1d37884be4..dbf5e945cb4 100644 --- a/drivers/sensor/adxl362/adxl362.c +++ b/drivers/sensor/adxl362/adxl362.c @@ -570,7 +570,6 @@ static int adxl362_init(struct device *dev) { struct adxl362_data *data = dev->driver_data; u8_t value; - int ret; data->spi = device_get_binding(CONFIG_ADXL362_SPI_DEV_NAME); if (!data->spi) { diff --git a/drivers/sensor/lis2dh/lis2dh.c b/drivers/sensor/lis2dh/lis2dh.c index 92c170bf5ca..375a5ad3758 100644 --- a/drivers/sensor/lis2dh/lis2dh.c +++ b/drivers/sensor/lis2dh/lis2dh.c @@ -183,7 +183,6 @@ static int lis2dh_freq_to_odr_val(u16_t freq) static int lis2dh_acc_odr_set(struct device *dev, u16_t freq) { - struct lis2dh_data *lis2dh = dev->driver_data; int odr; int status; u8_t value; diff --git a/drivers/sensor/lis2dh/lis2dh_trigger.c b/drivers/sensor/lis2dh/lis2dh_trigger.c index 787e3599233..ff742dd77d7 100644 --- a/drivers/sensor/lis2dh/lis2dh_trigger.c +++ b/drivers/sensor/lis2dh/lis2dh_trigger.c @@ -158,7 +158,6 @@ int lis2dh_trigger_set(struct device *dev, int lis2dh_acc_slope_config(struct device *dev, enum sensor_attribute attr, const struct sensor_value *val) { - struct lis2dh_data *lis2dh = dev->driver_data; int status; if (attr == SENSOR_ATTR_SLOPE_TH) {