qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] softmmu/device_tree: Remove redundant pointer assignment


From: Thomas Huth
Subject: Re: [PATCH] softmmu/device_tree: Remove redundant pointer assignment
Date: Thu, 13 Jan 2022 08:47:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

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.henderson@linaro.org>
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
---
Based on: softmmu/device_tree: Silence compiler warning with --enable-sanitizers
20220107133844.145039-1-thuth@redhat.com/">https://patchew.org/QEMU/20220107133844.145039-1-thuth@redhat.com/
---
  softmmu/device_tree.c | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]