mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
ACPI: APEI: Remove unneeded result variables
Return the erst_get_record_id_begin() and apei_exec_write_register() return values directly instead of storing them in redundant local variables. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
3709642896
commit
382c5fec89
@ -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 rc;
|
||||
return apei_exec_write_register(ctx, entry);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(apei_exec_write_register_value);
|
||||
|
||||
|
@ -1020,14 +1020,10 @@ static int reader_pos;
|
||||
|
||||
static int erst_open_pstore(struct pstore_info *psi)
|
||||
{
|
||||
int rc;
|
||||
|
||||
if (erst_disable)
|
||||
return -ENODEV;
|
||||
|
||||
rc = erst_get_record_id_begin(&reader_pos);
|
||||
|
||||
return rc;
|
||||
return erst_get_record_id_begin(&reader_pos);
|
||||
}
|
||||
|
||||
static int erst_close_pstore(struct pstore_info *psi)
|
||||
|
Loading…
Reference in New Issue
Block a user