Re: [PATCH V3 net-next 5/8] net: hns3: set the freed pointers to NULL when lifetime is not end

From: Simon Horman
Date: Mon Jun 23 2025 - 12:28:15 EST


On Mon, Jun 23, 2025 at 09:44:45AM +0800, Jijie Shao wrote:
>
> on 2025/6/21 23:33, Jakub Kicinski wrote:
> > On Thu, 19 Jun 2025 22:40:54 +0800 Jijie Shao wrote:
> > > ChangeLog:
> > > v2 -> v3:
> > > - Remove unnecessary pointer set to NULL operation, suggested by Simon Horman.
> > > v2: https://lore.kernel.org/all/20250617010255.1183069-1-shaojijie@xxxxxxxxxx/
> > You removed a single case, but I'm pretty sure Simon meant _all_
> > cases setting local variables to NULL in this patch are pointless.
>
> Ok, I will drop this patch in V4

Thanks, much appreciated.