Potentially uninitialized 'Status' might be returned in functions
NvmeCreateIoCompletionQueue() and NvmeCreateIoSubmissionQueue() in file
NvmExpressHci.c.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
NVME_ADMIN_CRIOCQ CrIoCq;\r
UINT32 Index;\r
\r
+ Status = EFI_SUCCESS;\r
+\r
for (Index = 1; Index < NVME_MAX_QUEUES; Index++) {\r
ZeroMem (&CommandPacket, sizeof(EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET));\r
ZeroMem (&Command, sizeof(EFI_NVM_EXPRESS_COMMAND));\r
NVME_ADMIN_CRIOSQ CrIoSq;\r
UINT32 Index;\r
\r
+ Status = EFI_SUCCESS;\r
+\r
for (Index = 1; Index < NVME_MAX_QUEUES; Index++) {\r
ZeroMem (&CommandPacket, sizeof(EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET));\r
ZeroMem (&Command, sizeof(EFI_NVM_EXPRESS_COMMAND));\r