From: Abdellatif El Khlifi Date: Fri, 20 Oct 2023 13:15:33 +0000 (+0100) Subject: arm_ffa: fix: remove deadcode in ffa_print_error_log() X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=482a0f17649f4fbae0f1aa02582cd27a955bf612;p=u-boot.git 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 Cc: Tom Rini --- diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-uclass.c index 8c17b19eaf..f1e91d151e 100644 --- a/drivers/firmware/arm-ffa/arm-ffa-uclass.c +++ b/drivers/firmware/arm-ffa/arm-ffa-uclass.c @@ -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;