From 997e9bbc18fbf467e722bef2bb1c372a2e8b4088 Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Thu, 22 Jun 2023 08:43:42 -0700 Subject: [PATCH] Remove dead code from fs_mgr Test: Compiles Change-Id: I644cfe58fdf87fbb88a85953f1450efb8b99baab --- MetadataCrypt.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MetadataCrypt.cpp b/MetadataCrypt.cpp index dbd8fd1..395cc02 100644 --- a/MetadataCrypt.cpp +++ b/MetadataCrypt.cpp @@ -102,9 +102,8 @@ static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device, bo PLOG(ERROR) << "Failed to setexeccon"; return false; } - auto mount_rc = fs_mgr_do_mount(&fstab_default, const_cast(mount_point), - const_cast(blk_device), nullptr, - android::vold::cp_needsCheckpoint(), true, needs_encrypt); + auto mount_rc = fs_mgr_do_mount(&fstab_default, mount_point, blk_device, + android::vold::cp_needsCheckpoint(), needs_encrypt); if (setexeccon(nullptr)) { PLOG(ERROR) << "Failed to clear setexeccon"; return false;