mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
ACPI: thermal: Drop redundant parens from expressions
Some expressions in the ACPI thermal driver contain redundant parentheses. Drop them. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
52ce50498c
commit
9e8bc16626
1 changed files with 4 additions and 4 deletions
|
@ -326,7 +326,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
|
||||||
|
|
||||||
/* Passive (optional) */
|
/* Passive (optional) */
|
||||||
if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) ||
|
if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) ||
|
||||||
(flag == ACPI_TRIPS_INIT)) {
|
flag == ACPI_TRIPS_INIT) {
|
||||||
valid = tz->trips.passive.flags.valid;
|
valid = tz->trips.passive.flags.valid;
|
||||||
if (psv == -1) {
|
if (psv == -1) {
|
||||||
status = AE_SUPPORT;
|
status = AE_SUPPORT;
|
||||||
|
@ -399,7 +399,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
|
||||||
if (act == -1)
|
if (act == -1)
|
||||||
break; /* disable all active trip points */
|
break; /* disable all active trip points */
|
||||||
|
|
||||||
if ((flag == ACPI_TRIPS_INIT) || ((flag & ACPI_TRIPS_ACTIVE) &&
|
if (flag == ACPI_TRIPS_INIT || ((flag & ACPI_TRIPS_ACTIVE) &&
|
||||||
tz->trips.active[i].flags.valid)) {
|
tz->trips.active[i].flags.valid)) {
|
||||||
status = acpi_evaluate_integer(tz->device->handle,
|
status = acpi_evaluate_integer(tz->device->handle,
|
||||||
name, NULL, &tmp);
|
name, NULL, &tmp);
|
||||||
|
@ -654,8 +654,8 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,
|
||||||
* tz->temperature has already been updated by generic thermal layer,
|
* tz->temperature has already been updated by generic thermal layer,
|
||||||
* before this callback being invoked
|
* before this callback being invoked
|
||||||
*/
|
*/
|
||||||
i = (tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature)) +
|
i = tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature) +
|
||||||
(tz->trips.passive.tc2 * (tz->temperature - tz->trips.passive.temperature));
|
tz->trips.passive.tc2 * (tz->temperature - tz->trips.passive.temperature);
|
||||||
|
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
*trend = THERMAL_TREND_RAISING;
|
*trend = THERMAL_TREND_RAISING;
|
||||||
|
|
Loading…
Reference in a new issue