summaryrefslogtreecommitdiffstats
path: root/tools/power/acpi
diff options
context:
space:
mode:
authorShi junming <junming@nfschina.com>2022-08-25 17:03:47 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-09-03 20:36:02 +0200
commit40083734d9f94713cedf2c386e4a668dfc6774a9 (patch)
tree79cf5e9b13f5e32252ec902d8e36a90839c6e26e /tools/power/acpi
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff)
downloadlinux-40083734d9f94713cedf2c386e4a668dfc6774a9.tar.bz2
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/acpi')
-rw-r--r--tools/power/acpi/tools/pfrut/pfrut.c2
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");