net/ena: fix icc build
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jul 2016 09:33:03 +0000 (10:33 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Jul 2016 22:42:10 +0000 (00:42 +0200)
commit62e82667fd2775c4413c0a575226d84815e2d9b7
tree87e42f776fd3ba3eb259e935169b00d1a42ba0e6
parent3337c30c4e69767dac61c94ece273361d2f23cc8
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>
drivers/net/ena/base/ena_com.c