Re: [PATCH] bnxt_en: initialize rc to zero to avoid returning garbage

From: David Miller
Date: Mon Jul 11 2016 - 15:42:20 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Fri, 8 Jul 2016 16:42:48 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> rc is not initialized so it can contain garbage if it is not
> set by the call to bnxt_read_sfp_module_eeprom_info. Ensure
> garbage is not returned by initializing rc to 0.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thanks.