From: Andy Moreton Date: Thu, 16 Nov 2017 08:03:51 +0000 (+0000) Subject: net/sfc/base: fix result code in MCDI NVRAM update finish X-Git-Tag: spdx-start~682 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=54a8950e371947855a154da73bc3acc406245f55;p=dpdk.git net/sfc/base: fix result code in MCDI NVRAM update finish Fixes: d96a34d165b1 ("net/sfc/base: import NVRAM support") Cc: stable@dpdk.org Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/efx_nvram.c b/drivers/net/sfc/base/efx_nvram.c index 6ee2a71d62..14ff8290c0 100644 --- a/drivers/net/sfc/base/efx_nvram.c +++ b/drivers/net/sfc/base/efx_nvram.c @@ -921,7 +921,7 @@ efx_mcdi_nvram_update_finish( efx_mcdi_req_t req; uint8_t payload[MAX(MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_LEN, MC_CMD_NVRAM_UPDATE_FINISH_V2_OUT_LEN)]; - uint32_t result = 0; /* FIXME: use MC_CMD_NVRAM_VERIFY_RC_UNKNOWN */ + uint32_t result = MC_CMD_NVRAM_VERIFY_RC_UNKNOWN; efx_rc_t rc; (void) memset(payload, 0, sizeof (payload));