diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-04-15 15:40:04 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-05-21 13:52:09 -0400 |
commit | 6115d8b40ce0c91620b6d5e7d18e0da704409f89 (patch) | |
tree | 8747bb328f1e2c021368b26b873932da668564db /os | |
parent | 7437b6dbdee050f8ebb3a79b9077d051c91880c3 (diff) |
os/WaitFor: Use xorg_list_append()
Currently, we use xorg_list_add(new, head->prev) which is functionaly
equivalent to xorg_list_append(), but with more pointer chasing, so
reduce the strain on the reader and compiler by using the simpler
append().
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'os')
-rw-r--r-- | os/WaitFor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/WaitFor.c b/os/WaitFor.c index 7c7b1d2d4..e3b545b93 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -332,7 +332,7 @@ TimerSet(OsTimerPtr timer, int flags, CARD32 millis, if ((int) (existing->expires - millis) > 0) break; /* This even works at the end of the list -- existing->list will be timers */ - xorg_list_add(&timer->list, existing->list.prev); + xorg_list_append(&timer->list, &existing->list); /* Check to see if the timer is ready to run now */ if ((int) (millis - now) <= 0) |