From e098e244a25017d8298d63a8bf04e9151b52ac3a Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Mon, 2 Nov 2015 10:47:01 +0000 Subject: Remove deprecated IO return definitions Patch 7e26fe1f deprecates IO specific return definitions in favour of standard errno codes. This patch removes those definitions and its usage from the IO framework, IO drivers and IO platform layer. Following this patch, standard errno codes must be used when checking the return value of an IO function. Change-Id: Id6e0e9d0a7daf15a81ec598cf74de83d5768650f --- common/bl_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/bl_common.c b/common/bl_common.c index 91a0ae8c..aeda69aa 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -151,11 +151,11 @@ unsigned long image_size(unsigned int image_id) uintptr_t image_handle; uintptr_t image_spec; size_t image_size = 0; - int io_result = IO_FAIL; + int io_result; /* Obtain a reference to the image by querying the platform layer */ io_result = plat_get_image_source(image_id, &dev_handle, &image_spec); - if (io_result != IO_SUCCESS) { + if (io_result != 0) { WARN("Failed to obtain reference to image id=%u (%i)\n", image_id, io_result); return 0; @@ -163,7 +163,7 @@ unsigned long image_size(unsigned int image_id) /* Attempt to access the image */ io_result = io_open(dev_handle, image_spec, &image_handle); - if (io_result != IO_SUCCESS) { + if (io_result != 0) { WARN("Failed to access image id=%u (%i)\n", image_id, io_result); return 0; @@ -171,7 +171,7 @@ unsigned long image_size(unsigned int image_id) /* Find the size of the image */ io_result = io_size(image_handle, &image_size); - if ((io_result != IO_SUCCESS) || (image_size == 0)) { + if ((io_result != 0) || (image_size == 0)) { WARN("Failed to determine the size of the image id=%u (%i)\n", image_id, io_result); } -- cgit v1.2.3