Skip to content

Commit

Permalink
drivers: sensor: lsm6dso: remove redundant check
Browse files Browse the repository at this point in the history
Drivers should not be compiled if this is true.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull committed Nov 6, 2023
1 parent 8919a58 commit 0df70bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/sensor/lsm6dso/lsm6dso.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,6 @@ static int lsm6dso_init(const struct device *dev)
return 0;
}

#if DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) == 0
#warning "LSM6DSO driver enabled without any devices"
#endif

/*
* Device creation macro, shared by LSM6DSO_DEFINE_SPI() and
* LSM6DSO_DEFINE_I2C().
Expand Down

0 comments on commit 0df70bc

Please sign in to comment.