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:
parent
732b815f4b
commit
fdf809d21c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue