commit | bb77f884d5679bef7c3d7ef62711a9f022bfa214 | [log] [tgz] |
---|---|---|
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | Wed Jul 18 13:23:07 2018 +0100 |
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | Fri Jul 20 11:36:00 2018 +0100 |
tree | 7b211e27ea4cefbe77381f3be5b623242e28d3b7 | |
parent | 291359619a2379e3a49eadf0001e903d0b9156a6 [diff] |
Fix check_[uptr/u32]_overflow() macros MISRA defects Add missing parentheses to fix MISRA C-2012 Rule 12.1. Also, the result of a comparison is an essentially boolean value, it isn't needed to return 1 or 0 depending on it. Also, fix header guards (MISRA C-2012 Rule 21.1). Change-Id: I90c0bcdeb2787c1ca659fc9a981808ece7958de3 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>