From 78460a05e4504c861708f19812f8cb1710a99edc Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Thu, 1 Oct 2015 18:37:40 +0100 Subject: Use standard errno definitions in load_auth_image() This patch replaces custom definitions used as return values for the load_auth_image() function with standard error codes defined in errno.h. The custom definitions have been removed. It also replaces the usage of IO framework error custom definitions, which have been deprecated. Standard errno definitions are used instead. Change-Id: I1228477346d3876151c05b470d9669c37fd231be --- bl2/bl2_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bl2/bl2_main.c') diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index 71940a62..404744b7 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -239,7 +240,7 @@ void bl2_main(void) e = load_bl32(bl2_to_bl31_params); if (e) { - if (e == LOAD_AUTH_ERR) { + if (e == -EAUTH) { ERROR("Failed to authenticate BL3-2\n"); panic(); } else { -- cgit v1.2.3