Re: [PATCH net] ice: Fix freeing uninitialized pointers

From: Dan Carpenter
Date: Fri Mar 22 2024 - 01:32:37 EST


On Thu, Mar 21, 2024 at 04:20:09PM -0400, Julia Lawall wrote:
> Does one prefer an initialization of null at the top of the function
> or an initialization to a meaningful value in the middle of the
> function?

I prefer at the top, but it will be interesting to see where the
consensus is. Kent Overstreet has said we should move away from
declarations at the top generally. I don't know if anyone else agrees
with him though.

regards,
dan carpenter