drivers/thermal/core: Optimize trip points check
authorBernard Zhao <bernard@vivo.com>
Tue, 27 Oct 2020 01:37:42 +0000 (18:37 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2020 08:53:19 +0000 (09:53 +0100)
commit37b2539e63d6570c9ee51b1d48bdecb334df367d
tree93493738f49dbde1a758515cb75d18376e7780f4
parent345a8af7ea63ac75a9000159d6298769d3d50f91
drivers/thermal/core: Optimize trip points check

The trip points are checked one by one with multiple condition
branches where one condition is enough to disable the trip point.

Merge all these conditions in a single 'OR' statement.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201027013743.62392-1-bernard@vivo.com
[dlezcano] Changed patch description
drivers/thermal/thermal_core.c