drm/amdgpu/sdma5.2: Remove unnecessary conversion to bool
Subsystems (3)
PATCH 1/1 drm/amdgpu/sdma5.2: Remove unnecessary conversion to bool
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1621:40-45: WARNING: conversion to bool not needed here.
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1619:40-45: WARNING: conversion to bool not needed here.
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +2 -2
@@ -1616,9 +1616,9 @@ static int sdma_v5_2_set_clockgating_state(void *handle,case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH :sdma_v5_2_update_medium_grain_clock_gating (adev, - state ==AMD_CG_STATE_GATE ? true : false); + state ==AMD_CG_STATE_GATE );sdma_v5_2_update_medium_grain_light_sleep (adev, - state ==AMD_CG_STATE_GATE ? true : false); + 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
AppliedApplied. Thanks!
Alex
Quoted 34 lines · Jiapeng Chong
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1621:40-45: WARNING: conversion to bool not needed here.
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1619:40-45: WARNING: conversion to bool not needed here.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +2
-3@@ -1616,9 +1616,9 @@ static int sdma_v5_2_set_clockgating_state(void *handle,case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH :sdma_v5_2_update_medium_grain_clock_gating (adev, - state ==AMD_CG_STATE_GATE ? true : false); + state ==AMD_CG_STATE_GATE );sdma_v5_2_update_medium_grain_light_sleep (adev, - state ==AMD_CG_STATE_GATE ? true : false); + 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
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel