Change to use continue for NVMe read function
If return directly while the gpio value isn't expected,
it will skip to read the other normal NVMe SSDs.
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ie46194704ad76daf1bf4b7f2751b9a68c0f71f5c
diff --git a/nvme_manager.cpp b/nvme_manager.cpp
index c240765..5411a92 100644
--- a/nvme_manager.cpp
+++ b/nvme_manager.cpp
@@ -536,7 +536,7 @@
nvmeData = NVMeData();
setNvmeInventoryProperties(false, nvmeData, inventoryPath);
nvmes.erase(config.index);
- return;
+ continue;
}
else if (config.pwrGoodPin)
{
@@ -571,7 +571,7 @@
isErrorPower[config.index] = true;
}
- return;
+ continue;
}
}
}