Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49af9349 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "lshal: Use vintf::FqInstance for VINTF APIs." am: 76137726 am:...

Merge "Merge "lshal: Use vintf::FqInstance for VINTF APIs." am: 76137726 am: 716a239f am: 0879ac21"
parents c21f6d14 33beca0e
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -353,8 +353,16 @@ bool ListCommand::addEntryWithInstance(const TableEntry& entry,
        return false;
    }

    auto vintfFqInstance = vintf::FqInstance::from(fqInstance.string());
    if (!vintfFqInstance.has_value()) {
        err() << "Unable to convert " << fqInstance.string() << " to vintf::FqInstance"
              << std::endl;
        return false;
    }

    std::string e;
    if (!manifest->insertInstance(fqInstance, entry.transport, arch, vintf::HalFormat::HIDL, &e)) {
    if (!manifest->insertInstance(*vintfFqInstance, entry.transport, arch, vintf::HalFormat::HIDL,
                                  &e)) {
        err() << "Warning: Cannot insert '" << fqInstance.string() << ": " << e << std::endl;
        return false;
    }