* [PATCH] drm/amd/display: fix boolconv.cocci warning
@ 2022-09-14 7:47 Yihao Han
2022-09-14 14:01 ` Alex Deucher
0 siblings, 1 reply; 2+ messages in thread
From: Yihao Han @ 2022-09-14 7:47 UTC (permalink / raw)
To: Harry Wentland, Leo Li, Rodrigo Siqueira, Alex Deucher,
Christian König, Pan, Xinhui, David Airlie, Daniel Vetter,
Jiapeng Chong, Aurabindo Pillai, Yihao Han, Martin Leung,
amd-gfx, dri-devel, linux-kernel
./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c:729:63-68:
WARNING: conversion to bool not needed here
Generated by: scripts/coccinelle/misc/boolconv.cocci
Signed-off-by: Yihao Han <hanyihao@vivo.com>
---
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
index f4bc77972c4e..4edd0655965b 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
@@ -726,7 +726,7 @@ static bool mpc32_program_shaper(
else
next_mode = LUT_RAM_A;
- mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A ? true:false, mpcc_id);
+ mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, mpcc_id);
if (next_mode == LUT_RAM_A)
mpc32_program_shaper_luta_settings(mpc, params, mpcc_id);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amd/display: fix boolconv.cocci warning
2022-09-14 7:47 [PATCH] drm/amd/display: fix boolconv.cocci warning Yihao Han
@ 2022-09-14 14:01 ` Alex Deucher
0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2022-09-14 14:01 UTC (permalink / raw)
To: Yihao Han
Cc: Jiapeng Chong, Leo Li, Pan, Xinhui, Rodrigo Siqueira,
linux-kernel, amd-gfx, David Airlie, Aurabindo Pillai, dri-devel,
Martin Leung, Alex Deucher, Christian König
Applied. Thanks!
On Wed, Sep 14, 2022 at 3:53 AM Yihao Han <hanyihao@vivo.com> wrote:
>
> ./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c:729:63-68:
> WARNING: conversion to bool not needed here
>
> Generated by: scripts/coccinelle/misc/boolconv.cocci
> Signed-off-by: Yihao Han <hanyihao@vivo.com>
> ---
> drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
> index f4bc77972c4e..4edd0655965b 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c
> @@ -726,7 +726,7 @@ static bool mpc32_program_shaper(
> else
> next_mode = LUT_RAM_A;
>
> - mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A ? true:false, mpcc_id);
> + mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, mpcc_id);
>
> if (next_mode == LUT_RAM_A)
> mpc32_program_shaper_luta_settings(mpc, params, mpcc_id);
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-14 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 7:47 [PATCH] drm/amd/display: fix boolconv.cocci warning Yihao Han
2022-09-14 14:01 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).