ACPI: APEI: Remove unneeded result variables
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 21 Sep 2022 09:28:34 +0000 (09:28 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 24 Sep 2022 16:50:42 +0000 (18:50 +0200)
commit382c5fec89f3b0ce870a17f028c547a9f95b7834
tree071d2d58d691429de708a65bf10d3942640f796c
parent37096428962d125591144876db6ae037096e39ed
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>
drivers/acpi/apei/apei-base.c
drivers/acpi/apei/erst.c