drivers: sensor: icm45686: fix condition in SQE acquisition check

Corrected the logical operator (||, not |) in the condition that checks
for successful acquisition of RTIO SQEs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-06 22:42:33 +02:00 committed by Dan Kalowsky
commit df2179f2a4

View file

@ -179,7 +179,7 @@ static inline void icm45686_submit_one_shot(const struct device *dev,
struct rtio_sqe *read_sqe = rtio_sqe_acquire(data->rtio.ctx);
struct rtio_sqe *complete_sqe = rtio_sqe_acquire(data->rtio.ctx);
if (!write_sqe || !read_sqe | !complete_sqe) {
if (!write_sqe || !read_sqe || !complete_sqe) {
LOG_ERR("Failed to acquire RTIO SQEs");
rtio_iodev_sqe_err(iodev_sqe, -ENOMEM);
return;