Re: [PATCH] proc: Remove unnecessary ‘NULL’ and '0' values
From: Kees Cook
Date: Sun Oct 09 2022 - 11:12:32 EST
On Sat, Oct 08, 2022 at 05:30:26PM +0800, Li zeming wrote:
> Remove unnecessary initialization assignments, which are used after the
> assignment.
They don't hurt anything, and in fact show the intent of the initial
variable state. Additionally, the compiler will drop it once it finds
the later assignment.
-Kees
--
Kees Cook