Subject: Re: [PATCH net 1/3] octeontx2-af: npc: cn20k: Handle npc_mcam_idx_2_key_type() failures

From: Dan Carpenter <[email-masked]>
Date: Thu, 16 Apr 2026 11:08:19 +0300

On Thu, Apr 16, 2026 at 09:23:50AM +0530, Ratheesh Kannoth wrote:
> npc_mcam_idx_2_key_type() can fail; ignoring its return value left
> kw_type unchecked in MCAM enable, configure, copy, and read paths.
> Return early on error so we do not program or interpret MCAM state
> with an invalid key type.
> 
> CC: Dan Carpenter <[email-masked]>
> Fixes: 6d1e70282f76 ("octeontx2-af: npc: cn20k: Use common APIs")
> Link: https://lore.kernel.org/netdev/[email-masked]/
> Signed-off-by: Ratheesh Kannoth <[email-masked]>

Thanks.  That silences the uninitialized variable warning.

regards,
dan carpenter