io_uring: remove dead non-zero 'poll' check
Jens Axboe
maintainerPATCH 1/1 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.
Reported-by Colin Ian King <[email protected]>
Signed-off-by Jens Axboe <[email protected]>
---
fs/io_uring.c +1 -1
@@ -4956,7 +4956,7 @@ static int io_poll_double_wake(struct wait_queue_entry *wait, unsigned mode,list_del_init (&wait->entry); -if (poll && poll->head) { +if (poll->head) {bool done;spin_lock (&poll->head->lock);
Signature · 1 line
Jens Axboe