]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix two assignments in if conditions
authorXinghui Li <korantli@tencent.com>
Wed, 2 Nov 2022 08:25:03 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:43 +0000 (13:55 +0100)
commitedad69aa92472303e11cb19a936fa2177fd4a0e4
treed566cee8f2224e79a3e387f3c3d01d8aeba6cd36
parent2a7a6ba7c2a68e2225f8eff5395b2313bbd9b636
io_uring: fix two assignments in if conditions

commit 8a6acc68c1b963397b13765e20cf1be972525ece upstream.

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: Xinghui Li <korantli@tencent.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20221102082503.32236-1-korantwork@gmail.com
[axboe: style tweaks]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/net.c
io_uring/poll.c