From: Pablo de Lara Date: Mon, 9 Oct 2017 05:21:59 +0000 (+0100) Subject: mempool/octeontx: fix icc build X-Git-Tag: spdx-start~1683 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ca5aeab31dac00a1e128e3e0196c3b7711f4143a;p=dpdk.git mempool/octeontx: fix icc build drivers/mempool/octeontx/octeontx_fpavf.c(789): error #592: variable "fpa" is used before its value is set RTE_SET_USED(fpa); Fixes: 1c842786fe6c ("mempool/octeontx: probe fpavf PCIe devices") Signed-off-by: Pablo de Lara --- diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c index c2d06563b6..eea934fa24 100644 --- a/drivers/mempool/octeontx/octeontx_fpavf.c +++ b/drivers/mempool/octeontx/octeontx_fpavf.c @@ -783,7 +783,7 @@ fpavf_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) { uint8_t *idreg; int res; - struct fpavf_res *fpa; + struct fpavf_res *fpa = NULL; RTE_SET_USED(pci_drv); RTE_SET_USED(fpa);