diff options
author | Shi junming <junming@nfschina.com> | 2022-08-25 11:03:47 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-09-03 20:36:02 +0200 |
commit | 40083734d9f94713cedf2c386e4a668dfc6774a9 (patch) | |
tree | 79cf5e9b13f5e32252ec902d8e36a90839c6e26e /tools/power | |
parent | Linux 6.0-rc3 (diff) | |
download | linux-40083734d9f94713cedf2c386e4a668dfc6774a9.tar.xz linux-40083734d9f94713cedf2c386e4a668dfc6774a9.zip |
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"); |