[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJZ5v0jVpCiwscgVQqS3yEwGaHUCPzR9pNDjt6qY6U4jJubt_A@mail.gmail.com>
Date: Thu, 25 Aug 2022 13:22:41 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: shijm <junming@...china.com>
Cc: Len Brown <lenb@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" <devel@...ica.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>
Subject: Re: [PATCH] tools: Delete the initialization value
On Thu, Aug 25, 2022 at 11:04 AM shijm <junming@...china.com> wrote:
>
> From: Shi junming <junming@...china.com>
>
> From the perspective of commpier,delete the initialization value
I'm not sure what this means.
The initialization is unnecessary, because the variable in question is
always assigned a new value before reading it. Is that what you
wanted to say?
> Signed-off-by: Shi junming <junming@...china.com>
> ---
> tools/power/acpi/tools/pfrut/pfrut.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/power/acpi/tools/pfrut/pfrut.c b/tools/power/acpi/tools/pfrut/pfrut.c
> index d79c335594b2..52aa0351533c 100644
> --- a/tools/power/acpi/tools/pfrut/pfrut.c
> +++ b/tools/power/acpi/tools/pfrut/pfrut.c
> @@ -190,7 +190,7 @@ int main(int argc, char *argv[])
> void *addr_map_capsule;
> struct stat st;
> char *log_buf;
> - int ret = 0;
> + int ret;
>
> if (getuid() != 0) {
> printf("Please run the tool as root - Exiting.\n");
> --
> 2.18.2
>
Powered by blists - more mailing lists