mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
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>
This commit is contained in:
parent
b90cb10531
commit
b3c0e38bdb
1 changed files with 1 additions and 5 deletions
|
@ -917,14 +917,10 @@ EXPORT_SYMBOL(ec_read);
|
||||||
|
|
||||||
int ec_write(u8 addr, u8 val)
|
int ec_write(u8 addr, u8 val)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
|
|
||||||
if (!first_ec)
|
if (!first_ec)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
err = acpi_ec_write(first_ec, addr, val);
|
return acpi_ec_write(first_ec, addr, val);
|
||||||
|
|
||||||
return err;
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ec_write);
|
EXPORT_SYMBOL(ec_write);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue