Skip to content

Commit 9ce85ef

Browse files
committed
io_uring: remove dead non-zero 'poll' check
Colin reports that Coverity complains about checking for poll being non-zero after having dereferenced it multiple times. This is a valid complaint, and actually a leftover from back when this code was based on the aio poll code. Kill the redundant check. Link: https://lore.kernel.org/io-uring/fe70c532-e2a7-3722-58a1-0fa4e5c5ff2c@canonical.com/ Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 8f487ef commit 9ce85ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4956,7 +4956,7 @@ static int io_poll_double_wake(struct wait_queue_entry *wait, unsigned mode,
49564956

49574957
list_del_init(&wait->entry);
49584958

4959-
if (poll && poll->head) {
4959+
if (poll->head) {
49604960
bool done;
49614961

49624962
spin_lock(&poll->head->lock);

0 commit comments

Comments
 (0)