Commit 40083734 authored by Shi junming's avatar Shi junming Committed by Rafael J. Wysocki

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: default avatarShi junming <junming@nfschina.com>
[ rjw: Subject edits, new changelog ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b90cb105
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment