Revert "Small fix: Use const value on IsHashreeDisabled"

This reverts commit f5d8773169.

Reason for revert: Identified as culprit for broken tests: b/317470107

Change-Id: If599c688bb4bbe800270881451fa5ac1f6898aff
This commit is contained in:
Oleg Petšjonkin 2023-12-22 10:17:25 +00:00 committed by Gerrit Code Review
parent f5d8773169
commit ec3ef81fd9

View file

@ -732,7 +732,7 @@ bool FirstStageMountVBootV2::GetDmVerityDevices(std::set<std::string>* devices)
return true;
}
bool IsHashtreeDisabled(const AvbHandle& vbmeta, const std::string& mount_point) {
bool IsHashtreeDisabled(const AvbHandle& vbmeta, 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;