Commit 37ea9693 authored by Jay Lu's avatar Jay Lu Committed by Rafael J. Wysocki

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: default avatarJay Lu <jaylu102@amd.com>
Signed-off-by: default avatarBen Cheatham <benjamin.cheatham@amd.com>
Reviewed-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 89da5c47
...@@ -358,6 +358,7 @@ static int __einj_error_trigger(u64 trigger_paddr, u32 type, ...@@ -358,6 +358,7 @@ static int __einj_error_trigger(u64 trigger_paddr, u32 type,
*/ */
if ((param_extension || acpi5) && (type & MEM_ERROR_MASK) && param2) { if ((param_extension || acpi5) && (type & MEM_ERROR_MASK) && param2) {
struct apei_resources addr_resources; struct apei_resources addr_resources;
apei_resources_init(&addr_resources); apei_resources_init(&addr_resources);
trigger_param_region = einj_get_trigger_parameter_region( trigger_param_region = einj_get_trigger_parameter_region(
trigger_tab, param1, param2); trigger_tab, param1, param2);
...@@ -466,6 +467,7 @@ static int __einj_error_inject(u32 type, u32 flags, u64 param1, u64 param2, ...@@ -466,6 +467,7 @@ static int __einj_error_inject(u32 type, u32 flags, u64 param1, u64 param2,
return rc; return rc;
if (einj_param) { if (einj_param) {
struct einj_parameter *v4param = einj_param; struct einj_parameter *v4param = einj_param;
v4param->param1 = param1; v4param->param1 = param1;
v4param->param2 = param2; v4param->param2 = param2;
} }
...@@ -689,8 +691,7 @@ static int __init einj_init(void) ...@@ -689,8 +691,7 @@ static int __init einj_init(void)
if (status == AE_NOT_FOUND) { if (status == AE_NOT_FOUND) {
pr_warn("EINJ table not found.\n"); pr_warn("EINJ table not found.\n");
return -ENODEV; return -ENODEV;
} } else if (ACPI_FAILURE(status)) {
else if (ACPI_FAILURE(status)) {
pr_err("Failed to get EINJ table: %s\n", pr_err("Failed to get EINJ table: %s\n",
acpi_format_exception(status)); acpi_format_exception(status));
return -EINVAL; return -EINVAL;
......
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