Skip to content

Commit df2179f

Browse files
kartbendkalowsk
authored andcommitted
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é <[email protected]>
1 parent 26cf7a0 commit df2179f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/tdk/icm45686/icm45686.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static inline void icm45686_submit_one_shot(const struct device *dev,
179179
struct rtio_sqe *read_sqe = rtio_sqe_acquire(data->rtio.ctx);
180180
struct rtio_sqe *complete_sqe = rtio_sqe_acquire(data->rtio.ctx);
181181

182-
if (!write_sqe || !read_sqe | !complete_sqe) {
182+
if (!write_sqe || !read_sqe || !complete_sqe) {
183183
LOG_ERR("Failed to acquire RTIO SQEs");
184184
rtio_iodev_sqe_err(iodev_sqe, -ENOMEM);
185185
return;

0 commit comments

Comments
 (0)