Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5ff9b98 authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'."

parents 3eccc5f5 67212f90
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1354,7 +1354,7 @@ static std::string fb_fix_numeric_var(std::string var) {


static unsigned fb_get_flash_block_size(Transport* transport, std::string name) {
static unsigned fb_get_flash_block_size(Transport* transport, std::string name) {
    std::string sizeString;
    std::string sizeString;
    if (!fb_getvar(transport, name.c_str(), &sizeString)) {
    if (!fb_getvar(transport, name.c_str(), &sizeString) || sizeString.empty()) {
        /* This device does not report flash block sizes, so return 0 */
        /* This device does not report flash block sizes, so return 0 */
        return 0;
        return 0;
    }
    }