summaryrefslogtreecommitdiffstats
path: root/adb/adb_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/adb_client.cpp')
-rw-r--r--adb/adb_client.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/adb/adb_client.cpp b/adb/adb_client.cpp
index 33eee82..7bb8e4a 100644
--- a/adb/adb_client.cpp
+++ b/adb/adb_client.cpp
@@ -48,7 +48,6 @@ static std::string perror_str(const char* msg) {
static bool ReadProtocolString(int fd, std::string* s, std::string* error) {
char buf[5];
-
if (!ReadFdExactly(fd, buf, 4)) {
*error = perror_str("protocol fault (couldn't read status length)");
return false;
@@ -154,7 +153,6 @@ static int switch_socket_transport(int fd, std::string* error) {
bool adb_status(int fd, std::string* error) {
char buf[5];
-
if (!ReadFdExactly(fd, buf, 4)) {
*error = perror_str("protocol fault (couldn't read status)");
return false;