summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2018-04-10 17:59:46 -0500
committerElliott Hughes2018-04-10 17:59:46 -0500
commitbd86420b83e385a6cf78e792768fea4e878e4b29 (patch)
treec45cf56abc6b3aa0dc4bade5a455ac534beab84e
parentf3192bd05231eb6d1c9307885c5400494e38527f (diff)
downloadplatform-system-core-bd86420b83e385a6cf78e792768fea4e878e4b29.tar.gz
platform-system-core-bd86420b83e385a6cf78e792768fea4e878e4b29.tar.xz
platform-system-core-bd86420b83e385a6cf78e792768fea4e878e4b29.zip
Remove unused variable.
Bug: N/A Test: builds Change-Id: I983f361d3d5a779600077a78b121c4ee399089db
-rw-r--r--fastboot/fastboot.cpp5
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) {
1027static void set_active(Transport* transport, const std::string& slot_override) { 1027static void set_active(Transport* transport, const std::string& slot_override) {
1028 if (!supports_AB(transport)) return; 1028 if (!supports_AB(transport)) return;
1029 1029
1030 std::string separator = "";
1031 if (slot_override != "") { 1030 if (slot_override != "") {
1032 fb_set_active(separator + slot_override); 1031 fb_set_active(slot_override);
1033 } else { 1032 } else {
1034 std::string current_slot = get_current_slot(transport); 1033 std::string current_slot = get_current_slot(transport);
1035 if (current_slot != "") { 1034 if (current_slot != "") {
1036 fb_set_active(separator + current_slot); 1035 fb_set_active(current_slot);
1037 } 1036 }
1038 } 1037 }
1039} 1038}