Re: [PATCH v1] sfc: Convert to use ERR_CAST()
From: Jakub Kicinski
Date: Wed Aug 28 2024 - 19:01:43 EST
On Wed, 28 Aug 2024 15:31:08 -0700 Jacob Keller wrote:
> Somewhat unrelated but you could cleanup some of the confusion by using
> __free(kfree) annotation from <linux/cleanup.h> to avoid needing to
> manually free ctr in error paths, and just use return_ptr() return the
> value at the end.
Please don't send people towards __free(). In general, but especially as
part of random cleanups.