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

Commit f5d87731 authored by Seungjae Yoo's avatar Seungjae Yoo
Browse files

Small fix: Use const value on IsHashreeDisabled

Bug: N/A
Test: Presubmit
Change-Id: I2167ac6d022c2c8c96febf2fc82eb3bba6fb6541
parent 30e45c6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -732,7 +732,7 @@ bool FirstStageMountVBootV2::GetDmVerityDevices(std::set<std::string>* devices)
    return true;
}

bool IsHashtreeDisabled(const AvbHandle& vbmeta, std::string mount_point) {
bool IsHashtreeDisabled(const AvbHandle& vbmeta, const std::string& mount_point) {
    if (vbmeta.status() == AvbHandleStatus::kHashtreeDisabled ||
        vbmeta.status() == AvbHandleStatus::kVerificationDisabled) {
        LOG(ERROR) << "Top-level vbmeta is disabled, skip Hashtree setup for " << mount_point;