aboutsummaryrefslogtreecommitdiff
path: root/common/avb_verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/avb_verify.c')
-rw-r--r--common/avb_verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/avb_verify.c b/common/avb_verify.c
index db10d0f21fc..0520a714556 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -369,7 +369,7 @@ static struct mmc_part *get_partition(AvbOps *ops, const char *partition)
}
ret = part_get_info_by_name(mmc_blk, partition, &part->info);
- if (!ret) {
+ if (ret < 0) {
printf("Can't find partition '%s'\n", partition);
goto err;
}