commit | 77ac76c0941a6939bc52ec608cd02fc8158003fe | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Thu Jun 22 18:02:06 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jun 22 18:02:06 2023 +0000 |
tree | c6452d8b8e262889f6be3437d340d2f3ada84a01 | |
parent | 93710811ca764ef0bdbd04685fa2f6b751e65a02 [diff] | |
parent | 59c22c33a090f98493e3e10a0f7b334d530b54af [diff] |
Merge "Removing local image lookup from load_buf"
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 4678655..faaca1d 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp
@@ -1076,9 +1076,7 @@ unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); if (fd == -1) { - auto path = find_item_given_name(fname); - fd = unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_BINARY))); - if (fd == -1) return false; + return false; } struct stat s;