Skip to content

Commit 4008373

Browse files
Shi junmingrafaeljw
authored andcommitted
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 <[email protected]> [ rjw: Subject edits, new changelog ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b90cb10 commit 4008373

File tree

1 file changed

+1
-1
lines changed
  • tools/power/acpi/tools/pfrut

1 file changed

+1
-1
lines changed

tools/power/acpi/tools/pfrut/pfrut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ int main(int argc, char *argv[])
190190
void *addr_map_capsule;
191191
struct stat st;
192192
char *log_buf;
193-
int ret = 0;
193+
int ret;
194194

195195
if (getuid() != 0) {
196196
printf("Please run the tool as root - Exiting.\n");

0 commit comments

Comments
 (0)