summaryrefslogtreecommitdiff
path: root/cmd/bootflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bootflow.c')
-rw-r--r--cmd/bootflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 1c1146ce11e..f88995a478f 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -208,7 +208,7 @@ static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc,
if (!ret)
num_valid++;
ret = bootstd_add_bootflow(&bflow);
- if (ret) {
+ if (ret < 0) {
printf("Out of memory\n");
return CMD_RET_FAILURE;
}