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é <benjamin@zephyrproject.org>
This commit is contained in:
parent
df2179f2a4
commit
fd7c3b4c1c
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ static void paa3905_submit_one_shot(const struct device *dev, struct rtio_iodev_
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue