[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/6] linux-user/elfload: use QTAILQ_FOREACH instead
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH 6/6] linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it |
Date: |
Mon, 27 Apr 2015 12:45:33 -0400 |
Signed-off-by: Emilio G. Cota <address@hidden>
---
linux-user/elfload.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 399c021..0ba9706 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);
}
--
1.9.1
- [Qemu-devel] [PATCH 0/6] trivial fixes, Emilio G. Cota, 2015/04/27
- [Qemu-devel] [PATCH 2/6] input: remove unused mouse_handlers list, Emilio G. Cota, 2015/04/27
- [Qemu-devel] [PATCH 6/6] linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it,
Emilio G. Cota <=
- [Qemu-devel] [PATCH 3/6] qemu-char: remove unused list node from FDCharDriver, Emilio G. Cota, 2015/04/27
- [Qemu-devel] [PATCH 5/6] coroutine: remove unnecessary parentheses in qemu_co_queue_empty, Emilio G. Cota, 2015/04/27
- Re: [Qemu-devel] [PATCH 0/6] trivial fixes, Michael Tokarev, 2015/04/29