diff mbox series

[1/3] linux-user/elfload: Remove pointless CPUArchState cast

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

Commit Message

Philippe Mathieu-Daudé March 6, 2022, 11:40 p.m. UTC
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

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(-)

Comments

Philippe Mathieu-Daudé March 6, 2022, 11:42 p.m. UTC | #1
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 mbox series

Patch

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();