ACPI: EC: Drop unneeded result variable from ec_write()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 25 Aug 2022 07:27:44 +0000 (07:27 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 3 Sep 2022 18:31:26 +0000 (20:31 +0200)
commitb3c0e38bdb52abd581da70d7048a173f8cf8d327
tree6789a4a3adfdbe69661e7f785cb55ff002e2c712
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
ACPI: EC: Drop unneeded result variable from ec_write()

Return the acpi_ec_write() return value directly instead of storing it
in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c