On 11/01/2022 04.27, Yanan Wang wrote:
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.hender...@linaro.org>
Signed-off-by: Yanan Wang <wangyana...@huawei.com>
---
Based on: softmmu/device_tree: Silence compiler warning with --enable-sanitizers
https://patchew.org/QEMU/20220107133844.145039-1-th...@redhat.com/
---
  softmmu/device_tree.c | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)

Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to