Message ID | 20220306234005.52511-2-philippe.mathieu.daude@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | linux-user: Use CPUArchState* instead of void* when possible | expand |
On 7/3/22 00:40, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé <f4bug@amsat.org> Not sure if "Remove pointless non-const CPUArchState cast" as subject is clearer? > fill_thread_info() takes a pointer to const. > > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > linux-user/elfload.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/elfload.c b/linux-user/elfload.c > index 9628a38361..d3d1d9acae 100644 > --- a/linux-user/elfload.c > +++ b/linux-user/elfload.c > @@ -3972,7 +3972,7 @@ static int fill_note_info(struct elf_note_info *info, > if (cpu == thread_cpu) { > continue; > } > - fill_thread_info(info, (CPUArchState *)cpu->env_ptr); > + fill_thread_info(info, cpu->env_ptr); > } > cpu_list_unlock(); >
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 9628a38361..d3d1d9acae 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -3972,7 +3972,7 @@ static int fill_note_info(struct elf_note_info *info, if (cpu == thread_cpu) { continue; } - fill_thread_info(info, (CPUArchState *)cpu->env_ptr); + fill_thread_info(info, cpu->env_ptr); } cpu_list_unlock();