[PATCH] drm/amd: remove unnecessary conversion from bool value to bool

2020-10-14 Thread Bernard Zhao
In functions vegam_is_dpm_running & vegam_populate_avfs_parameters, maybe there is no need to conver bool condition to bool variable or bool return value. This change is to make the code a bit more readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c | 7

Re: [PATCH] drm/amd: remove unnecessary conversion to bool

2020-06-12 Thread Alex Deucher
On Fri, Jun 12, 2020 at 9:22 AM Bernard Zhao wrote: > > In function is_support_sw_smu, remove unnecessary conversion > to bool return, this change is to make the code a bit readable. > > Signed-off-by: Bernard Zhao Vega20 support was removed from this code path so the patch is no longer

[PATCH] drm/amd: remove unnecessary conversion to bool

2020-06-12 Thread Bernard Zhao
In function is_support_sw_smu, remove unnecessary conversion to bool return, this change is to make the code a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git