diff options
| author | Rafael J. Wysocki <[email protected]> | 2023-09-19 18:59:53 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-09-26 15:59:53 +0000 |
| commit | a15ffa783ea4210877886c59566a0d20f6b2bc09 (patch) | |
| tree | 9761e6265af25f5f910df0a2908bb84ad94384b0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | thermal: core: Drop trips_disabled bitmask (diff) | |
| download | kernel-a15ffa783ea4210877886c59566a0d20f6b2bc09.tar.gz kernel-a15ffa783ea4210877886c59566a0d20f6b2bc09.zip | |
thermal: trip: Drop redundant trips check from for_each_thermal_trip()
It is invalid to call for_each_thermal_trip() on an unregistered thermal
zone anyway, and as per thermal_zone_device_register_with_trips(), the
trips[] table must be present if num_trips is greater than zero for the
given thermal zone.
Hence, the trips check in for_each_thermal_trip() is redundant and so it
can be dropped.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
