diff options
author | Elliott Hughes <enh@google.com> | 2018-04-10 15:59:46 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-04-10 15:59:46 -0700 |
commit | bd86420b83e385a6cf78e792768fea4e878e4b29 (patch) | |
tree | c45cf56abc6b3aa0dc4bade5a455ac534beab84e /fastboot | |
parent | f3192bd05231eb6d1c9307885c5400494e38527f (diff) | |
download | system_core-bd86420b83e385a6cf78e792768fea4e878e4b29.tar.gz system_core-bd86420b83e385a6cf78e792768fea4e878e4b29.tar.bz2 system_core-bd86420b83e385a6cf78e792768fea4e878e4b29.zip |
Remove unused variable.
Bug: N/A
Test: builds
Change-Id: I983f361d3d5a779600077a78b121c4ee399089db
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/fastboot.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 3b4f4b205..3a3503e84 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1027,13 +1027,12 @@ static void do_update_signature(ZipArchiveHandle zip, const char* filename) { static void set_active(Transport* transport, const std::string& slot_override) { if (!supports_AB(transport)) return; - std::string separator = ""; if (slot_override != "") { - fb_set_active(separator + slot_override); + fb_set_active(slot_override); } else { std::string current_slot = get_current_slot(transport); if (current_slot != "") { - fb_set_active(separator + current_slot); + fb_set_active(current_slot); } } } |