Skip to content

Commit 37ea969

Browse files
Jay Lurafaeljw
authored andcommitted
ACPI: APEI: EINJ: Fix formatting errors
Checkpatch reveals warnings and an error due to missing lines and incorrect indentations. Add the missing lines after declarations and fix the suspect indentations. Signed-off-by: Jay Lu <[email protected]> Signed-off-by: Ben Cheatham <[email protected]> Reviewed-by: Tony Luck <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 89da5c4 commit 37ea969

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

drivers/acpi/apei/einj.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ static int __einj_error_trigger(u64 trigger_paddr, u32 type,
358358
*/
359359
if ((param_extension || acpi5) && (type & MEM_ERROR_MASK) && param2) {
360360
struct apei_resources addr_resources;
361+
361362
apei_resources_init(&addr_resources);
362363
trigger_param_region = einj_get_trigger_parameter_region(
363364
trigger_tab, param1, param2);
@@ -432,11 +433,11 @@ static int __einj_error_inject(u32 type, u32 flags, u64 param1, u64 param2,
432433
}
433434
v5param->flags = vendor_flags;
434435
} else if (flags) {
435-
v5param->flags = flags;
436-
v5param->memory_address = param1;
437-
v5param->memory_address_range = param2;
438-
v5param->apicid = param3;
439-
v5param->pcie_sbdf = param4;
436+
v5param->flags = flags;
437+
v5param->memory_address = param1;
438+
v5param->memory_address_range = param2;
439+
v5param->apicid = param3;
440+
v5param->pcie_sbdf = param4;
440441
} else {
441442
switch (type) {
442443
case ACPI_EINJ_PROCESSOR_CORRECTABLE:
@@ -466,6 +467,7 @@ static int __einj_error_inject(u32 type, u32 flags, u64 param1, u64 param2,
466467
return rc;
467468
if (einj_param) {
468469
struct einj_parameter *v4param = einj_param;
470+
469471
v4param->param1 = param1;
470472
v4param->param2 = param2;
471473
}
@@ -689,8 +691,7 @@ static int __init einj_init(void)
689691
if (status == AE_NOT_FOUND) {
690692
pr_warn("EINJ table not found.\n");
691693
return -ENODEV;
692-
}
693-
else if (ACPI_FAILURE(status)) {
694+
} else if (ACPI_FAILURE(status)) {
694695
pr_err("Failed to get EINJ table: %s\n",
695696
acpi_format_exception(status));
696697
return -EINVAL;

0 commit comments

Comments
 (0)