From: Shi junming Date: Thu, 25 Aug 2022 09:03:47 +0000 (+0800) Subject: ACPI: tools: pfrut: Do not initialize ret in main() X-Git-Tag: v6.6.17~6540^2~2^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40083734d9f94713cedf2c386e4a668dfc6774a9;p=platform%2Fkernel%2Flinux-rpi.git ACPI: tools: pfrut: Do not initialize ret in main() The initialization is unnecessary, because ret is always assigned a new value before reading it. Signed-off-by: Shi junming [ rjw: Subject edits, new changelog ] Signed-off-by: Rafael J. Wysocki --- diff --git a/tools/power/acpi/tools/pfrut/pfrut.c b/tools/power/acpi/tools/pfrut/pfrut.c index d79c335..52aa035 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");