[PATCH 1/3] env: mmc: refactor mmc_offset_try_partition()