Ferruh Yigit 5f267cb01b net/ena: fix build for O1 optimization
Can be reproduced with "make EXTRA_CFLAGS='-O1'" command using
gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)

Build error:
.../drivers/net/ena/ena_ethdev.c: In function ‘eth_ena_dev_init’:
.../drivers/net/ena/ena_ethdev.c:1815:20:
    error: ‘wd_state’ may be used uninitialized in this function
           [-Werror=maybe-uninitialized]
 1815 |  adapter->wd_state = wd_state;
      |  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~

This looks like false positive, fixing by assigning initial value to
'wd_state' variable.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
2020-05-11 19:21:31 +02:00
..
2020-02-14 12:42:12 +01:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:30:58 +02:00
2020-04-25 19:53:47 +02:00
2020-04-21 13:57:05 +02:00
2020-04-25 19:53:47 +02:00
2020-04-16 18:30:58 +02:00
2020-04-16 18:30:58 +02:00
2020-04-25 19:53:47 +02:00
2020-05-05 15:54:26 +02:00
2020-04-21 13:57:08 +02:00
2020-04-21 13:57:07 +02:00
2020-05-05 15:54:27 +02:00
2020-04-21 13:57:07 +02:00
2020-04-25 19:53:47 +02:00
2020-05-05 15:54:26 +02:00
2020-04-21 13:57:06 +02:00
2020-04-21 13:57:07 +02:00
2020-04-21 13:57:07 +02:00