Merge \"Fix the sense of a test in \"adb sideload\".\"
am: 62cc17de8c
Change-Id: I16da89c02053e927c3b08e60be7df54cce88f10a
diff --git a/adb/commandline.cpp b/adb/commandline.cpp
index 82fa19a..b815fef 100644
--- a/adb/commandline.cpp
+++ b/adb/commandline.cpp
@@ -889,7 +889,7 @@
android::base::StringPrintf("sideload-host:%d:%d", sz, SIDELOAD_HOST_BLOCK_SIZE);
std::string error;
unique_fd fd(adb_connect(service, &error));
- if (fd >= 0) {
+ if (fd < 0) {
// Try falling back to the older sideload method. Maybe this
// is an older device that doesn't support sideload-host.
printf("\n");