summaryrefslogtreecommitdiff
path: root/board/st/stm32mp1/cmd_stboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/st/stm32mp1/cmd_stboard.c')
-rw-r--r--board/st/stm32mp1/cmd_stboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/stm32mp1/cmd_stboard.c b/board/st/stm32mp1/cmd_stboard.c
index f781c364cf..04352ae8ed 100644
--- a/board/st/stm32mp1/cmd_stboard.c
+++ b/board/st/stm32mp1/cmd_stboard.c
@@ -60,7 +60,7 @@ static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc,
ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD),
&otp, sizeof(otp));
- if (ret) {
+ if (ret < 0) {
puts("OTP read error");
return CMD_RET_FAILURE;
}