summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2016-07-19 10:33:03 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-22 00:42:10 +0200
commit62e82667fd2775c4413c0a575226d84815e2d9b7 (patch)
tree87e42f776fd3ba3eb259e935169b00d1a42ba0e6 /drivers
parent3337c30c4e69767dac61c94ece273361d2f23cc8 (diff)
downloaddpdk-62e82667fd2775c4413c0a575226d84815e2d9b7.zip
dpdk-62e82667fd2775c4413c0a575226d84815e2d9b7.tar.gz
dpdk-62e82667fd2775c4413c0a575226d84815e2d9b7.tar.xz
net/ena: fix icc build
drivers/net/ena/base/ena_com.c(346): error #3656: variable "dev_node" may be used before its value is set ENA_MEM_ALLOC_COHERENT_NODE(ena_dev->dmadev, ^ drivers/net/ena/base/ena_com.c(399): error #3656: variable "prev_node" may be used before its value is set ENA_MEM_ALLOC_COHERENT_NODE(ena_dev->dmadev, ^ Fixes: 3d3edc265fc8 ("net/ena: make coherent memory allocation NUMA-aware") Reported-by: Eoin Breen <eoin.breen@intel.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jan Medala <jan@semihalf.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ena/base/ena_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c
index a3649d8..88053e3 100644
--- a/drivers/net/ena/base/ena_com.c
+++ b/drivers/net/ena/base/ena_com.c
@@ -329,7 +329,7 @@ static int ena_com_init_io_sq(struct ena_com_dev *ena_dev,
struct ena_com_io_sq *io_sq)
{
size_t size;
- int dev_node;
+ int dev_node = 0;
ENA_TOUCH(ctx);
@@ -383,7 +383,7 @@ static int ena_com_init_io_cq(struct ena_com_dev *ena_dev,
struct ena_com_io_cq *io_cq)
{
size_t size;
- int prev_node;
+ int prev_node = 0;
ENA_TOUCH(ctx);
memset(&io_cq->cdesc_addr, 0x0, sizeof(struct ena_com_io_desc_addr));