commit | 0e1cadb05bba2293b4575c8cab275313d181d94f | [log] [tgz] |
---|---|---|
author | Roy Franz <roy.franz@linaro.org> | Sun Sep 22 15:45:38 2013 -0700 |
committer | Matt Fleming <matt.fleming@intel.com> | Wed Sep 25 12:34:42 2013 +0100 |
tree | 67b3d6a3c48b3fcaad7a5232b84930ca7a678798 | |
parent | ae8e9060a3ecfd22bd5059e39f81547613ae376c [diff] |
efi: Allow efi_free() to be called with size of 0 Make efi_free() safely callable with size of 0, similar to free() being callable with NULL pointers, and do nothing in that case. Remove size checks that this makes redundant. This also avoids some size checks in the ARM EFI stub code that will be added as well. Signed-off-by: Roy Franz <roy.franz@linaro.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>