aboutsummaryrefslogtreecommitdiff
path: root/board/st/stm32mp1/cmd_stboard.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-27 13:19:47 -0400
committerTom Rini <trini@konsulko.com>2019-08-27 13:19:47 -0400
commit8c56ea5c1e033f16993e5427300399ef848234bb (patch)
tree9c92d106a8cadca5b522e503e75c1ba936175f2d /board/st/stm32mp1/cmd_stboard.c
parente4b8dd9b34021241cd05d5cc9d24b4ae34657830 (diff)
parent06d1dd2cdc3c69122e58b38fd11b2a4e524a37e2 (diff)
Merge branch 'u-boot-stm32_20190827' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- Fixes and update related to STM32MP1 platforms
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;
}