drm/amdgpu: Remove unnecessary conversion to bool
Subsystems (3)
PATCH 1/1 drm/amdgpu: Remove unnecessary conversion to bool
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2252: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_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -1
@@ -2249,7 +2249,7 @@ static int sdma_v4_0_set_powergating_state(void *handle,case CHIP_RAVEN :case CHIP_RENOIR :sdma_v4_1_update_power_gating (adev, - state ==AMD_PG_STATE_GATE ? true : false); + state ==AMD_PG_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 8 lines · Jiapeng Chong
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2252: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 20 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1
-2@@ -2249,7 +2249,7 @@ static int sdma_v4_0_set_powergating_state(void *handle,case CHIP_RAVEN :case CHIP_RENOIR :sdma_v4_1_update_power_gating (adev, - state ==AMD_PG_STATE_GATE ? true : false); + state ==AMD_PG_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