Merge "Removing local image lookup from load_buf"
This commit is contained in:
commit
77ac76c094
1 changed files with 1 additions and 3 deletions
|
@ -1076,9 +1076,7 @@ static bool load_buf(const char* fname, struct fastboot_buffer* buf) {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue