Skip to content

Commit

Permalink
ACPI: tools: pfrut: Do not initialize ret in main()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shi junming authored and Rafael J. Wysocki committed Sep 3, 2022
1 parent b90cb10 commit 4008373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/acpi/tools/pfrut/pfrut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4008373

Please sign in to comment.