OSDN Git Service

softmmu/device_tree: Remove redundant pointer assignment
authorYanan Wang <wangyanan55@huawei.com>
Tue, 11 Jan 2022 03:27:58 +0000 (11:27 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 21 Jan 2022 05:52:56 +0000 (15:52 +1000)
commit22599b795c8395fa3e2a90c3b32ca1622035feeb
tree06c595042c254b29309e80b0a1dbbcae36189a6a
parentcfeeeb482a5279f240407a9d7266274c67c21d2e
softmmu/device_tree: Remove redundant pointer assignment

The pointer assignment "const char *p = path;" in function
qemu_fdt_add_path is unnecessary. Let's remove it and just
use the "path" passed in. No functional change.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20220111032758.27804-1-wangyanan55@huawei.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
softmmu/device_tree.c