mediatek: fix wrong return code in platform_check_image()

Ensure that the platform_check_image() function returns an error code.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
Chen Minqiang 2022-12-18 08:59:44 +08:00 committed by Daniel Golle
parent 781a3ae5dc
commit 016a7bd558
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ platform_check_image() {
;;
*)
nand_do_platform_check "$board" "$1"
return 0
return $?
;;
esac

View File

@ -74,6 +74,7 @@ platform_check_image() {
totolink,a8000ru|\
xiaomi,redmi-router-ax6s)
nand_do_platform_check "$board" "$1"
return $?
;;
*)
[ "$magic" != "d00dfeed" ] && {