Zebediah Figura : server: Remove a redundant NULL check for async->fd.
Module: wine Branch: master Commit: d4b13ef9d63187d69c68e88ef7b67d61c2a3c50f URL: https://source.winehq.org/git/wine.git/?a=commit;h=d4b13ef9d63187d69c68e88ef... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Sat Aug 21 14:29:51 2021 -0500 server: Remove a redundant NULL check for async->fd. If the async has not been terminated yet, async->fd cannot be NULL. Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- server/async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/async.c b/server/async.c index dbd4859edc4..442d98d8c7a 100644 --- a/server/async.c +++ b/server/async.c @@ -448,7 +448,7 @@ restart: LIST_FOR_EACH_ENTRY( async, &process->asyncs, struct async, process_entry ) { if (async->status != STATUS_PENDING) continue; - if ((!obj || (async->fd && get_fd_user( async->fd ) == obj)) && + if ((!obj || (get_fd_user( async->fd ) == obj)) && (!thread || async->thread == thread) && (!iosb || async->data.iosb == iosb)) {
participants (1)
-
Alexandre Julliard