mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 09:13:20 -05:00
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>
This commit is contained in:
parent
b90cb10531
commit
40083734d9
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ int main(int argc, char *argv[])
|
||||||
void *addr_map_capsule;
|
void *addr_map_capsule;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
char *log_buf;
|
char *log_buf;
|
||||||
int ret = 0;
|
int ret;
|
||||||
|
|
||||||
if (getuid() != 0) {
|
if (getuid() != 0) {
|
||||||
printf("Please run the tool as root - Exiting.\n");
|
printf("Please run the tool as root - Exiting.\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue