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 <zhao1.liu@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240129164514.73104-2-philmd@linaro.org>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
[thuth: Dropped hunks that need a rebase, and fixed sizeof() in pmu_realize()]
Signed-off-by: Thomas Huth <thuth@redhat.com>
2024-03-12 11:46:16 +01:00
..
2024-03-12 11:46:16 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-27 15:24:20 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-08 10:45:43 -05:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-10-12 14:11:44 +02:00
2023-12-30 07:38:06 +11:00
2024-01-08 10:45:43 -05:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-08 10:45:43 -05:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-05 16:20:15 +01:00
2024-03-05 13:22:55 +00:00
2024-02-11 13:20:23 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-03-05 13:22:55 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-15 15:53:12 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-15 14:32:38 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-23 23:24:42 +10:00
2024-02-23 23:24:42 +10:00
2023-10-25 17:35:15 +02:00
2024-03-12 11:46:16 +01:00
2023-07-10 22:29:14 +10:00
2023-10-12 12:34:30 +10:00
2023-12-30 07:38:06 +11:00
2023-09-21 11:31:16 +03:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-15 17:12:22 +00:00
2024-03-05 13:22:56 +00:00
2024-03-07 12:19:25 +00:00
2024-03-05 13:22:56 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-09-08 16:41:34 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-26 11:30:49 +00:00
2023-12-30 07:38:06 +11:00
2024-03-12 11:45:33 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00