Revert^2 "Small fix: Use const value on IsHashreeDisabled"

This reverts commit ec3ef81fd9.

Reason for revert: b/317470107 is an infrastructure error

Change-Id: If5a022cbfd016d9c55261c67a1a73d81cb336343
This commit is contained in:
Greg Kaiser 2023-12-22 20:03:05 +00:00 committed by Gerrit Code Review
parent ec3ef81fd9
commit 4c4742f678

View file

@ -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;