diff options
author | Achin Gupta <achin.gupta@arm.com> | 2015-11-04 22:32:50 +0000 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2015-11-04 22:32:50 +0000 |
commit | 135c9ddd36d326fc03983599fa2bcbfd15ff9afe (patch) | |
tree | 129c2b98dab58b812f91c62bf4013ca0cb0d2215 /common | |
parent | dd64d425a3df702dbe899538a6d8b8e61226722c (diff) | |
parent | e098e244a25017d8298d63a8bf04e9151b52ac3a (diff) | |
download | trusted-firmware-a-135c9ddd36d326fc03983599fa2bcbfd15ff9afe.tar.gz |
Merge pull request #423 from jcastillo-arm/jc/genfw/1211
Remove deprecated IO return definitions
Diffstat (limited to 'common')
-rw-r--r-- | common/bl_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/bl_common.c b/common/bl_common.c index 1cf0b23bbb..0eeef83f47 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); } |