Re: [PATCH] bnxt_en: initialize rc to zero to avoid returning garbage
From: Michael Chan
Date: Fri Jul 08 2016 - 16:06:36 EST
On Fri, Jul 8, 2016 at 8:42 AM, Colin King <colin.king@xxxxxxxxxxxxx> wrote:
> 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>
Thanks.
Acked-by: Michael Chan <michael.chan@xxxxxxxxxxxx>