]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm_ffa: fix: remove deadcode in ffa_print_error_log()
authorAbdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Fri, 20 Oct 2023 13:15:33 +0000 (14:15 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 30 Oct 2023 19:32:49 +0000 (15:32 -0400)
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>
drivers/firmware/arm-ffa/arm-ffa-uclass.c

index 8c17b19eaf57837638a2b2fbfe9defd93cc7a1b2..f1e91d151ea3ae91e03d676f3ada94f32f9df3c4 100644 (file)
@@ -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;