Skip to content

Commit 9e8bc16

Browse files
committed
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 <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent 52ce504 commit 9e8bc16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/acpi/thermal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
326326

327327
/* Passive (optional) */
328328
if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) ||
329-
(flag == ACPI_TRIPS_INIT)) {
329+
flag == ACPI_TRIPS_INIT) {
330330
valid = tz->trips.passive.flags.valid;
331331
if (psv == -1) {
332332
status = AE_SUPPORT;
@@ -399,7 +399,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
399399
if (act == -1)
400400
break; /* disable all active trip points */
401401

402-
if ((flag == ACPI_TRIPS_INIT) || ((flag & ACPI_TRIPS_ACTIVE) &&
402+
if (flag == ACPI_TRIPS_INIT || ((flag & ACPI_TRIPS_ACTIVE) &&
403403
tz->trips.active[i].flags.valid)) {
404404
status = acpi_evaluate_integer(tz->device->handle,
405405
name, NULL, &tmp);
@@ -654,8 +654,8 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,
654654
* tz->temperature has already been updated by generic thermal layer,
655655
* before this callback being invoked
656656
*/
657-
i = (tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature)) +
658-
(tz->trips.passive.tc2 * (tz->temperature - tz->trips.passive.temperature));
657+
i = tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature) +
658+
tz->trips.passive.tc2 * (tz->temperature - tz->trips.passive.temperature);
659659

660660
if (i > 0)
661661
*trend = THERMAL_TREND_RAISING;

0 commit comments

Comments
 (0)