Re: [PATCH] clk: ti: mux: don't free `parent_names' on kzalloc() failure
From: Stephen Boyd
Date: Thu Oct 27 2022 - 20:41:18 EST
Quoting Dario Binacchi (2022-10-17 09:46:46)
> Although no operation is performed by kfree() on a NULL pointer, it's
> however suboptimal and semantically wrong doing it.
Passing NULL to kfree() is fine. This is trying to optimize an error
path as well. No thanks.