Skip to content

Commit fd7c3b4

Browse files
kartbendkalowsk
authored andcommitted
drivers: sensor: paa3905: 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 df2179f commit fd7c3b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/pixart/paa3905/paa3905.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void paa3905_submit_one_shot(const struct device *dev, struct rtio_iodev_
8282
struct rtio_sqe *read_sqe = rtio_sqe_acquire(data->rtio.ctx);
8383
struct rtio_sqe *complete_sqe = rtio_sqe_acquire(data->rtio.ctx);
8484

85-
if (!write_sqe || !read_sqe | !complete_sqe) {
85+
if (!write_sqe || !read_sqe || !complete_sqe) {
8686
LOG_ERR("Failed to acquire RTIO SQEs");
8787
rtio_iodev_sqe_err(iodev_sqe, -ENOMEM);
8888
return;

0 commit comments

Comments
 (0)