Re: [PATCH v2] drivers/thermal: optimize the for circle to run a bit fast

2020-10-27 Thread Daniel Lezcano
On 27/10/2020 02:37, Bernard Zhao wrote: > Function thermal_zone_device_register, in the for circle, if the > first if branch set the count bit in tz->trips_disabled, there is > no need to set in the other if branch again. > This change is to make the code run a bit fast and readable. > >

Re: [PATCH v2] drivers/thermal: optimize the for circle to run a bit fast

2020-10-27 Thread Daniel Lezcano
On 27/10/2020 02:37, Bernard Zhao wrote: > Function thermal_zone_device_register, in the for circle, if the > first if branch set the count bit in tz->trips_disabled, there is > no need to set in the other if branch again. > This change is to make the code run a bit fast and readable. > >

[PATCH v2] drivers/thermal: optimize the for circle to run a bit fast

2020-10-26 Thread Bernard Zhao
Function thermal_zone_device_register, in the for circle, if the first if branch set the count bit in tz->trips_disabled, there is no need to set in the other if branch again. This change is to make the code run a bit fast and readable. Signed-off-by: Bernard Zhao Changes since V1: *make the