mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
media: mediatek: vcodec: Fix unreasonable data conversion
Both 'bs_dma' and 'dma_addr' are integers. No need to convert the type from dma_addr_t to uint64_t again. Fixes: d353c3c34af0 ("media: mediatek: vcodec: support 36 bits physical address") Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
59d438f8e0
commit
48d85de244
@ -449,7 +449,7 @@ static int vdec_vp8_decode(void *h_vdec, struct mtk_vcodec_mem *bs,
|
||||
inst->frm_cnt, y_fb_dma, c_fb_dma, fb);
|
||||
|
||||
inst->cur_fb = fb;
|
||||
dec->bs_dma = (uint64_t)bs->dma_addr;
|
||||
dec->bs_dma = bs->dma_addr;
|
||||
dec->bs_sz = bs->size;
|
||||
dec->cur_y_fb_dma = y_fb_dma;
|
||||
dec->cur_c_fb_dma = c_fb_dma;
|
||||
|
Loading…
x
Reference in New Issue
Block a user