commit | 4ef9fcce84c088d65cc3bb848586ced8d48c7e7d | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Wed Aug 03 19:40:45 2022 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Sun Aug 07 23:37:05 2022 +0800 |
tree | 5133980348685535d38cedd6d76d0b15d37e36ef | |
parent | 0b179f2049dd63549d75e2a07f7cfcc68656d680 [diff] |
set-verity-state: Simplify code path around overlayfs_setup() Original code: Calls |overlayfs_setup()| if |any_changed| is false |any_changed| is true implies |set_avb_verity_enabled_state()| is true which implies |overlayfs_setup()| is called by it. All this means |overlayfs_setup()| is called exactly once regardless of the value of |any_changed|, so simplify the logic to the above observation. Bug: 241688845 Test: Presubmit Change-Id: Ifcbae8db7fdda2f7576769cb4a213c305c670709