drm/amdgpu: Remove unnecessary conversion to bool
Subsystems (2)
PATCH 1/1 drm/amdgpu: Remove unnecessary conversion to bool
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:79:40-45: WARNING: conversion to bool not needed here.
./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:81:40-45: WARNING: conversion to bool not needed here.
--- drivers/gpu/drm/amd/amdgpu/athub_v2_1.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/athub_v2_1.c +2 -4
@@ -74,10 +74,8 @@ int athub_v2_1_set_clockgating(struct amdgpu_device *adev,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : -athub_v2_1_update_medium_grain_clock_gating (adev, - state ==AMD_CG_STATE_GATE ? true : false); -athub_v2_1_update_medium_grain_light_sleep (adev, - state ==AMD_CG_STATE_GATE ? true : false); +athub_v2_1_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ); +athub_v2_1_update_medium_grain_light_sleep (adev, state ==AMD_CG_STATE_GATE );break ;default :break ;
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 11 lines · Jiapeng Chong
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:79:40-45: WARNING: conversion to bool not needed here.
./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:81:40-45: WARNING: conversion to bool not needed here.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied. Thanks!
Alex
Quoted 24 lines
--- drivers/gpu/drm/amd/amdgpu/athub_v2_1.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/athub_v2_1.c +2
-5@@ -74,10 +74,8 @@ int athub_v2_1_set_clockgating(struct amdgpu_device *adev,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : -athub_v2_1_update_medium_grain_clock_gating (adev, - state ==AMD_CG_STATE_GATE ? true : false); -athub_v2_1_update_medium_grain_light_sleep (adev, - state ==AMD_CG_STATE_GATE ? true : false); +athub_v2_1_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ); +athub_v2_1_update_medium_grain_light_sleep (adev, state ==AMD_CG_STATE_GATE );break ;default :break ; --1.8.3.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx