Skip to content
Commit df730ec2 authored by Xinghui Li's avatar Xinghui Li Committed by Jens Axboe
Browse files

io_uring: fix two assignments in if conditions



Fixes two errors:

"ERROR: do not use assignment in if condition
130: FILE: io_uring/net.c:130:
+       if (!(issue_flags & IO_URING_F_UNLOCKED) &&

ERROR: do not use assignment in if condition
599: FILE: io_uring/poll.c:599:
+       } else if (!(issue_flags & IO_URING_F_UNLOCKED) &&"
reported by checkpatch.pl in net.c and poll.c .

Signed-off-by: default avatarXinghui Li <korantli@tencent.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20221102082503.32236-1-korantwork@gmail.com


[axboe: style tweaks]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 42385b02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment