From 4c4742f6784ebadf7c3824d8705fd2fcb463510d Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Fri, 22 Dec 2023 20:03:05 +0000 Subject: [PATCH] Revert^2 "Small fix: Use const value on IsHashreeDisabled" This reverts commit ec3ef81fd93bfa62d77bd58fafa0bfa6516f0c97. Reason for revert: b/317470107 is an infrastructure error Change-Id: If5a022cbfd016d9c55261c67a1a73d81cb336343 --- init/first_stage_mount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/first_stage_mount.cpp b/init/first_stage_mount.cpp index b5292a407..c0b928139 100644 --- a/init/first_stage_mount.cpp +++ b/init/first_stage_mount.cpp @@ -732,7 +732,7 @@ bool FirstStageMountVBootV2::GetDmVerityDevices(std::set* 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;