Files
qemu/hw
Philippe Mathieu-Daudé f168046842 cocci: Do not initialize variable used by QLIST_FOREACH macro
The QLIST_FOREACH() macro, defined in "qemu/queue.h",
always assigns its iterator variable when entering the
loop. Remove the pointless and possibly misleading
assignment.

Mechanical patch using the following coccinelle spatch:

  @@
  type T;
  identifier e;
  iterator FOREACH_MACRO =~ ".*_FOREACH.*";
  statement S;
  @@
  -    T *e = ...;
  +    T *e;
       ... when != e
       FOREACH_MACRO(e, ...) S

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Message-Id: <20260415215539.92629-2-philmd@linaro.org>
2026-05-06 16:10:46 +02:00
..
2026-04-23 12:14:46 -03:00
2026-04-24 21:27:14 +02:00
2026-03-08 23:08:41 +01:00
2026-02-27 14:22:07 +01:00
2026-04-29 22:49:14 +05:30
2025-12-27 10:11:08 +01:00
2026-03-08 23:08:41 +01:00
2026-04-21 18:28:42 +02:00