[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <449b9678-e3c2-4410-ac80-c50a1a25cc06@collabora.com>
Date: Wed, 6 Dec 2023 11:19:32 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Fei Shao <fshao@...omium.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: Andrew-CT Chen <andrew-ct.chen@...iatek.com>,
Dan Carpenter <dan.carpenter@...aro.org>,
Irui Wang <irui.wang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Nicolas Dufresne <nicolas.dufresne@...labora.com>,
NĂcolas F. R. A. Prado
<nfraprado@...labora.com>, Tiffany Lin <tiffany.lin@...iatek.com>,
Xiaoyong Lu <xiaoyong.lu@...iatek.com>,
Yunfei Dong <yunfei.dong@...iatek.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH 4/4] media: mediatek: vcodec: Drop VA check against
mtk_vcodec_mem_free()
Il 13/11/23 13:26, Fei Shao ha scritto:
> Now mtk_vcodec_mem_free() handles the VA-is-NULL case without generating
> excess error log, so we don't need to check that every time before using
> it in the driver.
>
> Remove all the unnecessary if branches against mtk_vcodec_mem_free().
>
> Signed-off-by: Fei Shao <fshao@...omium.org>
For the reasons explained in patch [3/4], I'd prefer to keep those checks.
Cheers,
Angelo
Powered by blists - more mailing lists