drivers/acpi/apei: remove redundant rc variable
PATCH 1/1 drivers/acpi/apei: remove redundant rc variable
From: Minghao Chi <[email protected]>
Return value from apei_exec_write_register() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/acpi/apei/apei-base.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/acpi/apei/apei-base.c +1 -4
@@ -125,12 +125,9 @@ EXPORT_SYMBOL_GPL(apei_exec_write_register);int apei_exec_write_register_value (struct apei_exec_context *ctx,struct acpi_whea_header *entry) { -int rc; - ctx->value = entry->value; - rc =apei_exec_write_register (ctx, entry); +return apei_exec_write_register (ctx, entry); -return rc; }EXPORT_SYMBOL_GPL (apei_exec_write_register_value);
Signature · 1 line
2.25.1
Rafael J. Wysocki
maintainerQuoted 9 lines · On Wed, Jan 12, 2022 at 9:02 AM <[email protected]> wrote:
From: Minghao Chi <[email protected]>
Return value from
apei_exec_write_register()directly instead of taking this in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>Signed-off-by CGEL ZTE <[email protected]>
Well, this doesn't look like an e-mail address of a physical person which is required for S-o-b tags.
Quoted 25 lines
--- drivers/acpi/apei/apei-base.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/acpi/apei/apei-base.c +1
-5@@ -125,12 +125,9 @@ EXPORT_SYMBOL_GPL(apei_exec_write_register);int apei_exec_write_register_value (struct apei_exec_context *ctx,struct acpi_whea_header *entry) { -int rc; - ctx->value = entry->value; - rc =apei_exec_write_register (ctx, entry); +return apei_exec_write_register (ctx, entry); -return rc; }EXPORT_SYMBOL_GPL (apei_exec_write_register_value); --2.25.1