diff options
| author | Emilio G. Cota | 2015-04-27 18:45:33 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2015-04-30 15:05:49 +0200 |
| commit | 52a53afebd2604af957d50fd4f3ce2012350a40d (patch) | |
| tree | 1d9b2f694978211aef3104715fad435d9f8cd39e /linux-user | |
| parent | coroutine: remove unnecessary parentheses in qemu_co_queue_empty (diff) | |
| download | qemu-52a53afebd2604af957d50fd4f3ce2012350a40d.tar.gz qemu-52a53afebd2604af957d50fd4f3ce2012350a40d.tar.xz qemu-52a53afebd2604af957d50fd4f3ce2012350a40d.zip | |
linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
| -rw-r--r-- | linux-user/elfload.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 399c021337..0ba97062b7 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2887,8 +2887,7 @@ static int write_note_info(struct elf_note_info *info, int fd) return (error); /* write prstatus for each thread */ - for (ets = info->thread_list.tqh_first; ets != NULL; - ets = ets->ets_link.tqe_next) { + QTAILQ_FOREACH(ets, &info->thread_list, ets_link) { if ((error = write_note(&ets->notes[0], fd)) != 0) return (error); } |
