driver/sensor: lsm6dso: Fix unchecked return value

Cast to (void) the lsm6dso_mem_bank_set() calls as we
are not interested to the return value.

Coverity-CID: 205625

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-11-12 10:25:00 +01:00 committed by Ioannis Glaropoulos
commit fdf809d21c

View file

@ -426,9 +426,9 @@ static inline void lsm6dso_shub_wait_completed(struct lsm6dso_data *data)
static inline void lsm6dso_shub_embedded_en(struct lsm6dso_data *data, bool on) static inline void lsm6dso_shub_embedded_en(struct lsm6dso_data *data, bool on)
{ {
if (on) { if (on) {
lsm6dso_mem_bank_set(data->ctx, LSM6DSO_SENSOR_HUB_BANK); (void) lsm6dso_mem_bank_set(data->ctx, LSM6DSO_SENSOR_HUB_BANK);
} else { } else {
lsm6dso_mem_bank_set(data->ctx, LSM6DSO_USER_BANK); (void) lsm6dso_mem_bank_set(data->ctx, LSM6DSO_USER_BANK);
} }
k_busy_wait(150); k_busy_wait(150);