commit | cb19523e35e933d0cdb3fef539e01528aa1b15c5 | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Mon Apr 12 18:53:06 2021 -0400 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 22 14:09:45 2021 -0400 |
tree | 4dce2780a6091a0914d5262ca1ef0c277846c6f8 | |
parent | f476b4a7d62ec8ce43b3e05a83082809ea48b071 [diff] |
part: Fix bogus return from part_get_info_by_dev_and_name blk_get_device_by_str returns the device number on success. So we must check if the return was negative to determine an error. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Simon Glass <sjg@chromium.org>