From a8d21b9b550dde7d3e7ffc0cd1171528a136165f Mon Sep 17 00:00:00 2001
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Date: Wed, 18 Jan 2023 19:44:45 +0100
Subject: [PATCH] =?UTF-8?q?lib/ioat:=20initialized=20=E2=80=98status?=
 =?UTF-8?q?=E2=80=99=20variable=20before=20use?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch fix `gcc-12` warning: #2829

```
warning: ‘status’ may be used uninitialized [-Wmaybe-uninitialized]
ioat.c:360:18: note: ‘status’ was declared here
  360 |         uint64_t status;
      |                  ^~~~~~
```

Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Change-Id: I8d010256e51cf6f1b9047d054773cb85d435ccf9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16339
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
---
 lib/ioat/ioat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ioat/ioat.c b/lib/ioat/ioat.c
index 479f73dd875..949afea850a 100644
--- a/lib/ioat/ioat.c
+++ b/lib/ioat/ioat.c
@@ -357,7 +357,7 @@ static int
 ioat_channel_start(struct spdk_ioat_chan *ioat)
 {
 	uint8_t xfercap, version;
-	uint64_t status;
+	uint64_t status = 0;
 	int i, num_descriptors;
 	uint64_t comp_update_bus_addr = 0;
 	uint64_t phys_addr;
