[PATCH v2] riscv: module: use a plain variable for list_head instead of a pointer
laokz
zhangkai at iscas.ac.cn
Thu Nov 28 06:24:27 PST 2024
On Thu, 2024-11-28 at 09:32 +0100, Andrew Jones wrote:
> On Thu, Nov 28, 2024 at 09:01:52AM +0800, laokz wrote:
> > On Wed, 2024-11-27 at 15:25 +0100, Clément Léger wrote:
> > > rel_head's list_head member, rel_entry, doesn't need to be
> > > allocated,
> > > its storage can just be part of the allocated rel_head. Remove
> > > the
> >
> > Oh my poor English. OK, it's more better than just add the lost
> > kfree.
> >
>
> It wasn't the English I was correcting. That was fine, but just
> saying
> the object could be "a plain variable" wasn't giving any
> justification
> for the change and, to me, even implied that rel_entry was locally
> scoped. So, when I first skimmed the patch and saw that it was
> getting
> appended to a list, I almost stated the patch was wrong. It was clear
> after looking closer, but it could have been clear the first time
> through if the commit message had better guided me.
Thanks for the explanation.
laokz
> Thanks,
> drew
More information about the linux-riscv
mailing list