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>
This commit is contained in:
parent
b1201addc7
commit
52a53afebd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user