mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
firmware: Avoid adding the FWtype if already exists in vector
- Avoid adding the duplicate FWtypes in case of multi GPU devices Related-To: LOCI-2623 Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c1a4e3ad50
commit
3efa0330f4
@@ -27,7 +27,9 @@ ze_result_t OsFirmware::getSupportedFwTypes(std::vector<std::string> &supportedF
|
||||
for (const auto &readByteLine : mtdDescriptorStrings) {
|
||||
for (const auto &fwType : deviceSupportedFwTypes) {
|
||||
if (std::string::npos != readByteLine.find(fwType)) {
|
||||
supportedFwTypes.push_back(fwType);
|
||||
if (std::find(supportedFwTypes.begin(), supportedFwTypes.end(), fwType) == supportedFwTypes.end()) {
|
||||
supportedFwTypes.push_back(fwType);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user