Files
qemu/hw/misc/macio
Philippe Mathieu-Daudé ee1004bba6 bulk: Access existing variables initialized to &S->F when available
When a variable is initialized to &struct->field, use it
in place. Rationale: while this makes the code more concise,
this also helps static analyzers.

Mechanical change using the following Coccinelle spatch script:

 @@
 type S, F;
 identifier s, m, v;
 @@
      S *s;
      ...
      F *v = &s->m;
      <+...
 -    &s->m
 +    v
      ...+>

Inspired-by: Zhao Liu <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-ID: <[email protected]>
Acked-by: Fabiano Rosas <[email protected]>
Reviewed-by: Zhao Liu <[email protected]>
Reviewed-by: Anthony PERARD <[email protected]>
[thuth: Dropped hunks that need a rebase, and fixed sizeof() in pmu_realize()]
Signed-off-by: Thomas Huth <[email protected]>
2024-03-12 11:46:16 +01:00
..
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2019-03-07 21:45:53 +01:00
2023-12-30 07:38:06 +11:00