Message ID | 20220112080155.666868-1-chi.minghao@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | drivers/acpi/apei: remove redundant rc variable | expand |
diff --git a/drivers/acpi/apei/apei-base.c b/drivers/acpi/apei/apei-base.c index c7fdb12c3310..87145b6b89aa 100644 --- a/drivers/acpi/apei/apei-base.c +++ b/drivers/acpi/apei/apei-base.c @@ -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);