CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Huang Rui <[email protected]>
CC: Alex Deucher <[email protected]>
CC: "Christian König" <[email protected]>
CC: David Airlie <[email protected]>
CC: Daniel Vetter <[email protected]>
CC: Hawking Zhang <[email protected]>
CC: Luben Tuikov <[email protected]>
CC: Jiansong Chen <[email protected]>
CC: changzhu <[email protected]>
CC: Likun Gao <[email protected]>

From: kernel test robot <[email protected]>

drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c:511:39-44: WARNING: conversion to bool 
not needed here
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c:513:39-44: WARNING: conversion to bool 
not needed here

 Remove unneeded conversion to bool

Semantic patch information:
 Relational and logical operators evaluate to bool,
 explicit conversion is overly verbose and unneeded.

Generated by: scripts/coccinelle/misc/boolconv.cocci

Fixes: 4d8d75a45c7c ("drm/amdgpu: add mmhub v2.3 for vangogh (v4)")
CC: Huang Rui <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   4e78c578cb987725eef1cec7d11b6437109e9a49
commit: 4d8d75a45c7ce7f6a0b9dff510be5be8e34febb4 [465/2472] drm/amdgpu: add 
mmhub v2.3 for vangogh (v4)
:::::: branch date: 10 hours ago
:::::: commit date: 4 weeks ago

Please take the patch only if it's a positive warning. Thanks!

 mmhub_v2_3.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
@@ -508,9 +508,9 @@ static int mmhub_v2_3_set_clockgating(st
                return 0;
 
        mmhub_v2_3_update_medium_grain_clock_gating(adev,
-                       state == AMD_CG_STATE_GATE ? true : false);
+                       state == AMD_CG_STATE_GATE);
        mmhub_v2_3_update_medium_grain_light_sleep(adev,
-                       state == AMD_CG_STATE_GATE ? true : false);
+                       state == AMD_CG_STATE_GATE);
 
        return 0;
 }
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to