Skip to content
Commit d67b58a9 authored by Alistair Francis's avatar Alistair Francis Committed by LRN
Browse files

glib/gpoll: Remove if conditional



The original ready < nhandles - 1 can be re-written as ready + 1 < nhandles
which is the same confition that we are checking on the first
itteration of the for loop. This means we can remove the if statement
and let the for loop check the code.

This also has the side effect of removing an invalid check as
WAIT_OBJECT_0 was not subtracted from ready in the if statement.

Signed-off-by: default avatarAlistair Francis <alistair.francis@xilinx.com>
parent 425a9f58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment