From: Feng Jiang Date: Wed, 24 May 2023 07:47:00 +0000 (+0800) Subject: radeonsi/vcn: Remove unnecessary type conversion X-Git-Tag: upstream/23.3.3~5808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=005a4ec9e8c4245eb953decef900e017f69f48c9;p=platform%2Fupstream%2Fmesa.git 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: --- 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;