ena: fix build with icc
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 6 Apr 2016 12:17:26 +0000 (13:17 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 6 Apr 2016 13:49:17 +0000 (15:49 +0200)
commit5fe8c8a2ba751b0464cba16660601c3795d37422
treeca4a79f02cc64a7d6e0c9f7131c3fd2a7a0f1523
parentc28aad21a9668243d7f5ee5cd035a89723f6f054
ena: fix build with icc

With (ICC) 16.0.2 20160204, getting following warnings:

.../drivers/net/ena/base/ena_com.c(492): error #3656: variable
 "flags" may be used before its value is set
 ENA_SPINLOCK_LOCK(admin_queue->q_lock, flags);

.../drivers/net/ena/base/ena_com.c(1971): error #3656: variable
 "mem_handle" may be used before its value is set
 ENA_MEM_ALLOC_COHERENT(ena_dev->dmadev, len,

For both warnings the variable value is ignored, so there is no defect.
To comfort compiler warning, a initial value provided to variables.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ena/base/ena_com.c