drm/amd/pm: Remove unnecessary conversion to bool
Subsystems (3)
PATCH 1/1 drm/amd/pm: Remove unnecessary conversion to bool
Fix the following coccicheck warning:
./drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c:907:47-52:
WARNING: conversion to bool not needed here.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1 -1
@@ -904,7 +904,7 @@ static bool sienna_cichlid_is_support_fine_grained_dpm(struct smu_context *smu, dpm_desc = &pptable->DpmDescriptor[clk_index];/* 0 - Fine grained DPM, 1 - Discrete DPM */ -return dpm_desc->SnapToDiscrete ==0 ? true : false; +return dpm_desc->SnapToDiscrete !=0 ; } static int sienna_cichlid_print_clk_levels(struct smu_context *smu,
Signature · 1 line
1.8.3.1
[AMD Official Use Only - Internal Distribution Only]
if possible, please correct the same issue in navi10_ppt.c
Best Regards,
Kevin
________________________________
From: Jiapeng Chong <[email protected]>
Sent: Sunday, February 7, 2021 4:49 PM
To: Deucher, Alexander <[email protected]>
Cc: Koenig, Christian <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; Jiapeng Chong <[email protected]>
Subject: [PATCH] drm/amd/pm: Remove unnecessary conversion to bool
Fix the following coccicheck warning:
./drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c:907:47-52:
WARNING: conversion to bool not needed here.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1 -1
@@ -904,7 +904,7 @@ static bool sienna_cichlid_is_support_fine_grained_dpm(struct smu_context *smu, dpm_desc = &pptable->DpmDescriptor[clk_index];/* 0 - Fine grained DPM, 1 - Discrete DPM */ -return dpm_desc->SnapToDiscrete ==0 ? true : false; +return dpm_desc->SnapToDiscrete !=0 ; } static int sienna_cichlid_print_clk_levels(struct smu_context *smu,
--
1.8.3.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx