mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00
arm_ffa: fix: remove deadcode in ffa_print_error_log()
address the CID 464361 Control flow issues [1] [1]: https://lore.kernel.org/all/20230821210927.GL3953269@bill-the-cat/ Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Cc: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
8af8378779
commit
482a0f1764
1 changed files with 0 additions and 2 deletions
|
@ -144,8 +144,6 @@ static int ffa_print_error_log(u32 ffa_id, int ffa_errno)
|
|||
return -EINVAL;
|
||||
|
||||
abi_idx = FFA_ID_TO_ERRMAP_ID(ffa_id);
|
||||
if (abi_idx < 0 || abi_idx >= FFA_ERRMAP_COUNT)
|
||||
return -EINVAL;
|
||||
|
||||
if (!err_msg_map[abi_idx].err_str[err_idx])
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue