Re: [PATCH net-next v1 4/8] net: dsa: microchip: ksz8: Refactor ksz8_r_dyn_mac_table() for readability
From: Jakub Kicinski
Date: Tue Apr 02 2024 - 13:08:16 EST
On Tue, 2 Apr 2024 15:44:30 +0000 Arun.Ramadoss@xxxxxxxxxxxxx wrote:
> > int rc;
>
> If rc is initialized with 0, we don't need to assign rc = 0 in the
> success path.
Not so sure -- it's easier for the compiler to catch uninitialized
variables than "accidentally stale" values.