[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3528639f-85a3-4756-b04b-c233f6c84276@collabora.com>
Date: Wed, 6 Dec 2023 11:19:37 +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>,
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>,
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 2/4] media: mediatek: vcodec: Drop unnecessary variable
Il 13/11/23 13:26, Fei Shao ha scritto:
> It's unclear why only mem->size has local copies without particular
> usage in mtk_vcodec_mem_alloc() and mtk_vcodec_mem_free(), and they
> seem removable.
>
> Drop them to make the code visually consistent, and update printk format
> identifier accordingly.
>
> Signed-off-by: Fei Shao <fshao@...omium.org>
That's probably just about personal preferences, as mem->size is not expected
to change during the flow of those functions.
That said, as much as you, I prefer not having this local copy as it's using
(a very small amount of) memory for no real reason anyway, so:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists