]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/unit/test-smp-parse: Simplify pointer to compound literal use
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 11 Nov 2021 07:58:40 +0000 (08:58 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 31 Dec 2021 12:31:20 +0000 (13:31 +0100)
commit47ab8a491ac62a884a42fb50ef3c7c7e0dac59d3
tree0ca07af2fb035f1c732dcff2e20e8b860eef631c
parent2dc426c468833619afc1221666e0e6246b8f21d7
tests/unit/test-smp-parse: Simplify pointer to compound literal use

We can simply use a local variable (and pass its pointer) instead
of a pointer to a compound literal.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Yanan Wang <wangyanan55@huawei.com>
Tested-by: Yanan Wang <wangyanan55@huawei.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211216132015.815493-7-philmd@redhat.com>
tests/unit/test-smp-parse.c