From 005a4ec9e8c4245eb953decef900e017f69f48c9 Mon Sep 17 00:00:00 2001 From: Feng Jiang Date: Wed, 24 May 2023 15:47:00 +0800 Subject: [PATCH] radeonsi/vcn: Remove unnecessary type conversion The types of both 'encrypted' and 'picture->protected_playback' are bool, so there is no need. I guess this is a typo. Signed-off-by: Feng Jiang Reviewed-by: Boyuan Zhang Part-of: --- src/gallium/drivers/radeonsi/radeon_vcn_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c index ee08195..b879ed6 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c @@ -1905,7 +1905,7 @@ static struct pb_buffer *rvcn_dec_message_decode(struct radeon_decoder *dec, struct pipe_picture_desc *picture) { DECRYPT_PARAMETERS *decrypt = (DECRYPT_PARAMETERS *)picture->decrypt_key; - bool encrypted = (DECRYPT_PARAMETERS *)picture->protected_playback; + bool encrypted = picture->protected_playback; struct si_texture *luma; struct si_texture *chroma; struct pipe_video_buffer *out_surf = target; -- 2.7.4