summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/evged.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-11-23 19:38:21 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-01 20:17:32 +0100
commit1f2350443dd21028d3de6907f98ff1be75a2c9bc (patch)
treea4bd2aaf821c30b975b6c96b7fe30c87b2cd92c3 /drivers/acpi/evged.c
parentca8283dcd933a2ca776fade77fb4527321521463 (diff)
downloadlinux-stable-1f2350443dd21028d3de6907f98ff1be75a2c9bc.tar.gz
linux-stable-1f2350443dd21028d3de6907f98ff1be75a2c9bc.tar.bz2
linux-stable-1f2350443dd21028d3de6907f98ff1be75a2c9bc.zip
ACPI: EC: Pass one argument to acpi_ec_query()
Notice that the second argument to acpi_ec_query() is redundant, because in the only case when it is not NULL, the value passed through it is only checked against 0 and it can only be 0 when acpi_ec_query() returns an error code, but its return value is checked along with the value passed through its second argument. Accordingly, modify acpi_ec_query() to take only one argument and while at it, change its handling of the case when acpi_ec_transaction() returns an error so as to return that error value to the caller right away. No expected functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/evged.c')
0 files changed, 0 insertions, 0 deletions