diff options
author | Shi junming <junming@nfschina.com> | 2022-08-25 12:03:47 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-09-03 21:36:02 +0300 |
commit | 40083734d9f94713cedf2c386e4a668dfc6774a9 (patch) | |
tree | 79cf5e9b13f5e32252ec902d8e36a90839c6e26e /tools/power | |
parent | b90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff) | |
download | linux-40083734d9f94713cedf2c386e4a668dfc6774a9.tar.xz |
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 <junming@nfschina.com>
[ rjw: Subject edits, new changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/acpi/tools/pfrut/pfrut.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |